diff --git a/src/antergos-alerts.py b/src/antergos-alerts.py index f13c46b..169a3f4 100755 --- a/src/antergos-alerts.py +++ b/src/antergos-alerts.py @@ -45,13 +45,13 @@ try: with open(ALERTS_JSON) as data: - ALERTS = json.loads(data) + ALERTS = json.loads(data.read()) except (OSError, json.JSONDecodeError): ALERTS = {} try: with open(COMPLETED_JSON) as data: - COMPLETED_ALERT_IDS = json.loads(data) + COMPLETED_ALERT_IDS = json.loads(data.read()) except (OSError, json.JSONDecodeError): COMPLETED_ALERT_IDS = []