Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix reddit plugin

Signed-off-by: Jack Miller <jack@codezen.org>
  • Loading branch information...
commit 71243c91baadb93a82a20501d446a333bd41f34c 1 parent 86fa0b0
@themoken authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/reddit.py
View
2  plugins/reddit.py
@@ -81,7 +81,7 @@ def fetch_redditJSON(self, **kwargs):
response = urllib.request.urlopen(\
"http://reddit.com/by_id/t3_" + reddit_id + ".json")
- r = json.load(response)
+ r = json.loads(response.read().decode())
entry["reddit-json"] = r
except Exception as e:
log.error("Error fetching Reddit JSON: %s" % e)
Please sign in to comment.
Something went wrong with that request. Please try again.