Skip to content

Commit

Permalink
umu_util: don't timeout when setting up runtime
Browse files Browse the repository at this point in the history
- For now, remove the timeouts and let the files continue to download instead of using magic numbers
  • Loading branch information
R1kaB3rN committed May 2, 2024
1 parent ddaa873 commit 24e3f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umu/umu_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def setup_runtime(json: dict[str, Any]) -> None: # noqa: D103
# Get the digest for the runtime archive
with (
urlopen( # noqa: S310
f"{base_url}/SHA256SUMS", timeout=30, context=SSL_DEFAULT_CONTEXT
f"{base_url}/SHA256SUMS", context=SSL_DEFAULT_CONTEXT
) as resp,
):
if resp.status != 200:
Expand All @@ -75,7 +75,7 @@ def setup_runtime(json: dict[str, Any]) -> None: # noqa: D103
log.console(f"Downloading {codename} {runtime_platform_value}, please wait ...")
with (
urlopen( # noqa: S310
f"{base_url}/{archive}", timeout=300, context=SSL_DEFAULT_CONTEXT
f"{base_url}/{archive}", context=SSL_DEFAULT_CONTEXT
) as resp,
):
data: bytes = b""
Expand Down

0 comments on commit 24e3f09

Please sign in to comment.