From e9b483f4e87639c0fc5ed95652f9a986960d6add Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 16 Nov 2025 19:30:30 -0800 Subject: [PATCH] Update locationdata.py --- modules/locationdata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 4ab83eb..3020f1b 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -261,7 +261,7 @@ def get_NOAAweather(lat=0, lon=0, unit=0, report_days=None): logger.warning("Location:Error fetching weather data from NOAA for location") return my_settings.ERROR_FETCHING_DATA except Exception: - logger.warning(f"Location:Error fetching weather data error: {Exception}") + logger.warning(f"Location:Error fetching weather data malformed: {Exception}") return my_settings.ERROR_FETCHING_DATA # get the forecast URL from the JSON response weather_json = weather_data.json() @@ -272,7 +272,7 @@ def get_NOAAweather(lat=0, lon=0, unit=0, report_days=None): logger.warning("Location:Error fetching weather forecast from NOAA") return my_settings.ERROR_FETCHING_DATA except Exception: - logger.warning(f"Location:Error fetching weather data error: {Exception}") + logger.warning(f"Location:Error fetching weather data missing: {Exception}") return my_settings.ERROR_FETCHING_DATA # from periods, get the detailedForecast from number of days in NOAAforecastDuration