diff --git a/modules/locationdata.py b/modules/locationdata.py index 071cb4b..35d4d80 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -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