Update locationdata.py

This commit is contained in:
SpudGunMan
2024-07-20 09:28:57 -07:00
parent 1c6fd2c60c
commit 9fdd789f80
+2 -2
View File
@@ -45,10 +45,10 @@ def get_tide(lat=0, lon=0):
else:
return ERROR_FETCHING_DATA
station_id = station_json['stationList'][0]['stationId']
if station_id is None:
return "no station found"
station_id = station_json['stationList'][0]['stationId']
except (requests.exceptions.RequestException, json.JSONDecodeError):
return ERROR_FETCHING_DATA