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

Commit

Permalink
Fix incorrect data passed to json.loads()
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Jun 25, 2017
1 parent 44ed77b commit 98ae98d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/antergos-alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit 98ae98d

Please sign in to comment.