diff --git a/modules/locationdata_eu.py b/modules/locationdata_eu.py index 7a204bc..b58749c 100644 --- a/modules/locationdata_eu.py +++ b/modules/locationdata_eu.py @@ -18,9 +18,8 @@ def get_govUK_alerts(): soup = bs.BeautifulSoup(response.text, 'html.parser') # the alerts are in

alert = soup.find('h2', class_='govuk-heading-m', id='alert-status') - if alert: - return alert.text + return alert.get_text(strip=True) else: return "No alerts"