Update locationdata.py

This commit is contained in:
SpudGunMan
2025-10-21 12:45:29 -07:00
parent 5fd293c990
commit bbf8b04bd3

View File

@@ -528,10 +528,10 @@ def getIpawsAlert(lat=0, lon=0, shortAlerts = False):
try:
alert_data = requests.get(alert_url, timeout=urlTimeoutSeconds)
if not alert_data.ok:
logger.warning("System: iPAWS fetching IPAWS alerts from FEMA")
logger.warning(f"System: iPAWS fetching IPAWS alerts from FEMA (HTTP {alert_data.status_code})")
return ERROR_FETCHING_DATA
except (requests.exceptions.RequestException):
logger.warning("System: iPAWS fetching IPAWS alerts from FEMA")
except requests.exceptions.RequestException as e:
logger.warning(f"System: iPAWS fetching IPAWS alerts from FEMA ({e})")
return ERROR_FETCHING_DATA
# main feed bulletins