From 0013a7bb74979ed6ac07dcfaa414e308efeef1b7 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 16 Feb 2025 11:01:47 -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 5844030..89d2d1c 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -244,7 +244,7 @@ def get_NOAAweather(lat=0, lon=0, unit=0): logger.warning("Location:Error fetching weather data from NOAA for location") return ERROR_FETCHING_DATA except (requests.exceptions.RequestException): - logger.error("Location:Error fetching weather data from NOAA") + logger.warning("Location:Error fetching weather data from NOAA for location") return ERROR_FETCHING_DATA # get the forecast URL from the JSON response weather_json = weather_data.json() @@ -255,7 +255,7 @@ def get_NOAAweather(lat=0, lon=0, unit=0): logger.warning("Location:Error fetching weather forecast from NOAA") return ERROR_FETCHING_DATA except (requests.exceptions.RequestException): - logger.error("Location:Error fetching weather data from NOAA") + logger.warning("Location:Error fetching weather forecast from NOAA") return ERROR_FETCHING_DATA # from periods, get the detailedForecast from number of days in NOAAforecastDuration