Private
Public Access
1
0

fix errors

This commit is contained in:
Sander Roosendaal
2023-04-10 13:32:10 +02:00
parent 2bc9a99e5b
commit 764044899a
3 changed files with 17 additions and 10 deletions

View File

@@ -38,7 +38,10 @@ def get_weather_data(long, lat, unixtime):
return 0
if s.ok:
return s.json()
try:
return s.json()
except:
return 0
else: # pragma: no cover
return 0