fix: handle invalid json returned by kldscpe

This commit is contained in:
Iain Learmonth 2026-05-21 13:08:34 +01:00
parent 614dc3d37d
commit b305914ac3

View file

@ -44,6 +44,6 @@ def get_kaleidoscope_mirror(origin: str) -> str | None:
if response.status_code == 200:
try:
return response.json()["upstream"]
except KeyError:
except (KeyError, requests.exceptions.JSONDecodeError):
return None
return None