From 98ae98d7b87b3f04c33058eae652a184845e0545 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Sun, 25 Jun 2017 04:30:49 -0500 Subject: [PATCH] Fix incorrect data passed to json.loads() --- src/antergos-alerts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []