fix errors
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user