Compatibility with Python 3.8

This commit is contained in:
Ian Renton
2026-03-31 21:13:18 +01:00
parent 041216c5bb
commit 14c4e6f221
15 changed files with 41 additions and 37 deletions

View File

@@ -2,7 +2,7 @@ import re
from datetime import datetime
import pytz
from rss_parser import RSSParser
from rss_parser import Parser
from alertproviders.http_alert_provider import HTTPAlertProvider
from data.alert import Alert
@@ -20,7 +20,7 @@ class NG3K(HTTPAlertProvider):
def _http_response_to_alerts(self, http_response):
new_alerts = []
rss = RSSParser.parse(http_response.content.decode())
rss = Parser.parse(http_response.content.decode())
# Iterate through source data
for source_alert in rss.channel.items:
# Deal with "the format"...