mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
"GITHUB_REPOSITORY" not set (#513)
This commit is contained in:
committed by
GitHub
parent
61dde7f7be
commit
419892a2eb
+2
-2
@@ -251,15 +251,15 @@ def datetime_to_ms_epoch(dt: datetime) -> int:
|
|||||||
|
|
||||||
def load_older_updates(env: Env) -> dict[str, Any]:
|
def load_older_updates(env: Env) -> dict[str, Any]:
|
||||||
"""Load older updated from updates.json."""
|
"""Load older updated from updates.json."""
|
||||||
|
try:
|
||||||
update_file_url = updates_file_url.format(
|
update_file_url = updates_file_url.format(
|
||||||
github_repository=env.str("GITHUB_REPOSITORY"),
|
github_repository=env.str("GITHUB_REPOSITORY"),
|
||||||
branch_name=branch_name,
|
branch_name=branch_name,
|
||||||
updates_file=updates_file,
|
updates_file=updates_file,
|
||||||
)
|
)
|
||||||
try:
|
|
||||||
with urllib.request.urlopen(update_file_url) as url:
|
with urllib.request.urlopen(update_file_url) as url:
|
||||||
return json.load(url) # type: ignore[no-any-return]
|
return json.load(url) # type: ignore[no-any-return]
|
||||||
except urllib.error.URLError as e:
|
except Exception as e: # noqa: BLE001
|
||||||
logger.error(f"Failed to retrieve update file: {e}")
|
logger.error(f"Failed to retrieve update file: {e}")
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user