fix: handle invalid json returned by kldscpe
This commit is contained in:
parent
614dc3d37d
commit
b305914ac3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue