From 273db04bb07c040b90c4abed321ac02cd98310fe Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sun, 21 Jun 2026 21:43:51 +0100 Subject: [PATCH 1/4] 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 @@ - + + diff --git a/templates/alerts.html b/templates/alerts.html index d7e7c3e..4dfa4fe 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index f803b83..81ca9ab 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 20f22c1..4e2aeea 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 b236d74..6dbfc53 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 42e48d6..e623765 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 4b6e1e7..0bdca08 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index c736898..b49cbfc 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - + + diff --git a/templates/alerts.html b/templates/alerts.html index 4dfa4fe..9a240b9 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 81ca9ab..21c6af2 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 4e2aeea..b6cbc90 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 6dbfc53..8a07ffb 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index e623765..c135728 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 0bdca08..c921a6e 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index b49cbfc..191d443 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - + + diff --git a/templates/alerts.html b/templates/alerts.html index 9a240b9..fef1ee6 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 21c6af2..50fce7a 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index b6cbc90..36341da 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 8a07ffb..dbcdf49 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index c135728..ca953b5 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index c921a6e..df3a546 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 191d443..9472818 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - +