Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.

Commit 98ae98d

Browse files
committed
Fix incorrect data passed to json.loads()
1 parent 44ed77b commit 98ae98d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/antergos-alerts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545

4646
try:
4747
with open(ALERTS_JSON) as data:
48-
ALERTS = json.loads(data)
48+
ALERTS = json.loads(data.read())
4949
except (OSError, json.JSONDecodeError):
5050
ALERTS = {}
5151

5252
try:
5353
with open(COMPLETED_JSON) as data:
54-
COMPLETED_ALERT_IDS = json.loads(data)
54+
COMPLETED_ALERT_IDS = json.loads(data.read())
5555
except (OSError, json.JSONDecodeError):
5656
COMPLETED_ALERT_IDS = []
5757

0 commit comments

Comments
 (0)