From 273db04bb07c040b90c4abed321ac02cd98310fe Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sun, 21 Jun 2026 21:43:51 +0100 Subject: [PATCH] Improve exception logging in sigref lookup --- core/sig_utils.py | 4 ++-- templates/add_spot.html | 2 +- templates/alerts.html | 2 +- templates/bands.html | 4 ++-- templates/base.html | 10 +++++----- templates/conditions.html | 2 +- templates/map.html | 4 ++-- templates/spots.html | 4 ++-- templates/status.html | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/core/sig_utils.py b/core/sig_utils.py index 4608659..fc9469e 100644 --- a/core/sig_utils.py +++ b/core/sig_utils.py @@ -161,8 +161,8 @@ def populate_sig_ref_info(sig_ref): sig_ref.longitude = ll[1] except: logging.debug("Invalid lat/lon received for reference") - except: - logging.warning("Failed to look up sig_ref info for " + sig + " ref " + ref_id + ".") + except Exception: + logging.warning("Failed to look up sig_ref info for " + sig + " ref " + ref_id, exc_info=True) return sig_ref diff --git a/templates/add_spot.html b/templates/add_spot.html index c7005e1..7843268 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -76,7 +76,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index 18b0dfd..d7e7c3e 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 3de0646..f803b83 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index d70aacc..20f22c1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -10,10 +10,10 @@ - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 739cc90..b236d74 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 3c165f8..42e48d6 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 8ebc625..4b6e1e7 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index b293fe9..c736898 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - +