diff --git a/providers/spot/sse_spot_provider.py b/providers/spot/sse_spot_provider.py index 5697ba3..cd883d0 100644 --- a/providers/spot/sse_spot_provider.py +++ b/providers/spot/sse_spot_provider.py @@ -91,7 +91,7 @@ class SSESpotProvider(SpotProvider): ) except InvalidStatusCodeError as e: self.status = "Error" - logger.exception(f"HTTP {e.status_code} returned from SSE Spot Provider ({self.name}).") + logger.warning(f"HTTP {e.status_code} returned from SSE Spot Provider ({self.name}).") finally: self._set_event_source(None) diff --git a/providers/spot/wota.py b/providers/spot/wota.py index de9e6bb..f85de2b 100644 --- a/providers/spot/wota.py +++ b/providers/spot/wota.py @@ -53,10 +53,15 @@ class WOTA(HTTPSpotProvider): desc_split = source_spot.description.split(". ") freq_mode = desc_split[0].replace("Frequencies/modes:", "").strip() freq_mode_split = re.split(r"[\-\s]+", freq_mode) - freq_hz = float(freq_mode_split[0].replace("'", ".")) * 1000000 + freq_hz = None mode = None - if len(freq_mode_split) > 1: - mode = freq_mode_split[1].upper() + try: + freq_hz = float(freq_mode_split[0].replace("'", ".")) * 1000000 + if len(freq_mode_split) > 1: + mode = freq_mode_split[1].upper() + except ValueError: + # Something wrong with parsing frequency and mode, bail out + pass comment = None if len(desc_split) > 1: diff --git a/templates/add_spot.html b/templates/add_spot.html index e22a22b..4c7f4ce 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 c910343..dd010e1 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -84,7 +84,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index c5c51f1..f3d6fcd 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -76,8 +76,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 2bd2f4b..2a74886 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -15,10 +15,10 @@ window.fetchEventSource = fetchEventSource; - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 13a873a..638fb45 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 3393263..0e39177 100644 --- a/templates/map.html +++ b/templates/map.html @@ -109,8 +109,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 98c3c1a..0e93319 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -113,8 +113,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 403c2c8..48b17e0 100644 --- a/templates/status.html +++ b/templates/status.html @@ -86,7 +86,7 @@ - +