Permalink
Browse files

Fix reddit plugin

Signed-off-by: Jack Miller <jack@codezen.org>
  • Loading branch information...
1 parent 86fa0b0 commit 71243c91baadb93a82a20501d446a333bd41f34c @themoken committed Feb 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/reddit.py
View
@@ -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)

0 comments on commit 71243c9

Please sign in to comment.