mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-05-21 20:46:01 +08:00
chore(cli): reduce timeout for version check
This commit is contained in:
@ -35,7 +35,7 @@ def cli(notify_outdated_version: bool) -> None:
|
|||||||
warn_prompt = "Cannot check if latest release of Manim Slides is installed"
|
warn_prompt = "Cannot check if latest release of Manim Slides is installed"
|
||||||
try:
|
try:
|
||||||
req_info: requests.models.Response = requests.get(
|
req_info: requests.models.Response = requests.get(
|
||||||
manim_info_url, timeout=10
|
manim_info_url, timeout=2
|
||||||
)
|
)
|
||||||
req_info.raise_for_status()
|
req_info.raise_for_status()
|
||||||
stable = req_info.json()["info"]["version"]
|
stable = req_info.json()["info"]["version"]
|
||||||
|
Reference in New Issue
Block a user