1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 20:15:24 +02:00
This commit is contained in:
Hayden 2022-04-23 10:41:16 -08:00 committed by GitHub
parent 60682dba75
commit 75c535fb2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,4 +38,11 @@ def get_latest_version() -> str:
_LAST_RESET = now
get_latest_github_release.cache_clear()
return get_latest_github_release()
try:
return get_latest_github_release()
except requests.RequestException:
return "error fetching version"
except KeyError:
return "error parsing response"
except Exception:
return "unknown error"