diff --git a/alertproviders/parksnpeaks.py b/alertproviders/parksnpeaks.py index 49b64ba..ad288eb 100644 --- a/alertproviders/parksnpeaks.py +++ b/alertproviders/parksnpeaks.py @@ -12,7 +12,7 @@ class ParksNPeaks(HTTPAlertProvider): """Alert provider for Parks n Peaks""" POLL_INTERVAL_SEC = 1800 - ALERTS_URL = "http://parksnpeaks.org/api/ALERTS/" + ALERTS_URL = "https://parksnpeaks.org/api/ALERTS/" def __init__(self, provider_config): super().__init__(provider_config, self.ALERTS_URL, self.POLL_INTERVAL_SEC) diff --git a/core/lookup_helper.py b/core/lookup_helper.py index 8bd1628..0e42525 100644 --- a/core/lookup_helper.py +++ b/core/lookup_helper.py @@ -18,7 +18,6 @@ from core.cache_utils import SEMI_STATIC_URL_DATA_CACHE from core.config import config from core.constants import BANDS, UNKNOWN_BAND, CW_MODES, PHONE_MODES, DATA_MODES, ALL_MODES, \ HTTP_HEADERS, HAMQTH_PRG, MODE_ALIASES -from data.lookup_credentials import LookupCredentials # QRZ XML field names differ from pyhamtools' normalised names; map them here. _QRZ_FIELD_MAP = { diff --git a/data/spot.py b/data/spot.py index e40f6cf..ff3c3a2 100644 --- a/data/spot.py +++ b/data/spot.py @@ -14,7 +14,6 @@ from core.constants import MODE_ALIASES from core.geo_utils import lat_lon_to_cq_zone, lat_lon_to_itu_zone from core.lookup_helper import lookup_helper, infer_band_from_freq, infer_mode_from_comment, \ infer_mode_from_frequency, infer_mode_type_from_mode -from data.lookup_credentials import LookupCredentials from core.sig_utils import populate_sig_ref_info, ANY_SIG_REGEX, get_ref_regex_for_sig from data.sig_ref import SIGRef diff --git a/server/handlers/api/alerts.py b/server/handlers/api/alerts.py index e41b7dd..ae61f9c 100644 --- a/server/handlers/api/alerts.py +++ b/server/handlers/api/alerts.py @@ -143,7 +143,7 @@ class APIAlertsStreamHandler(tornado_eventsource.handler.EventSourceHandler): if self._alert_queue not in self._sse_alert_queues: logging.error("Web server cleared up a queue of an active connection!") self.close() - except: + except Exception as e: logging.warning("Exception in SSE callback, connection will be closed: %s", e, exc_info=True) self.close() diff --git a/server/handlers/api/solar_conditions.py b/server/handlers/api/solar_conditions.py index b38f6b8..1d684bc 100644 --- a/server/handlers/api/solar_conditions.py +++ b/server/handlers/api/solar_conditions.py @@ -1,11 +1,9 @@ -import json from datetime import datetime import pytz import tornado from core.prometheus_metrics_handler import api_requests_counter -from core.utils import serialize_everything class APISolarConditionsHandler(tornado.web.RequestHandler): diff --git a/server/handlers/api/spots.py b/server/handlers/api/spots.py index 9141b53..b435eba 100644 --- a/server/handlers/api/spots.py +++ b/server/handlers/api/spots.py @@ -145,7 +145,7 @@ class APISpotsStreamHandler(tornado_eventsource.handler.EventSourceHandler): if self._spot_queue not in self._sse_spot_queues: logging.error("Web server cleared up a queue of an active connection!") self.close() - except: + except Exception as e: logging.warning("Exception in SSE callback, connection will be closed: %s", e, exc_info=True) self.close() diff --git a/templates/about.html b/templates/about.html index 8c929ca..05b888d 100644 --- a/templates/about.html +++ b/templates/about.html @@ -69,7 +69,7 @@
This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.
- + {% end %} \ No newline at end of file diff --git a/templates/add_spot.html b/templates/add_spot.html index 52629bb..07f1b50 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -69,8 +69,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/alerts.html b/templates/alerts.html index 78b3032..b832e4b 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -70,8 +70,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/bands.html b/templates/bands.html index 5d7e976..e2c7460 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -76,9 +76,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index fbcb314..b5a2ec0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -10,9 +10,9 @@ - - - + + + {% end %} {% block body %}