From 144ccc123385ed684b0306a73241561df83ac27d Mon Sep 17 00:00:00 2001 From: David Trail Date: Mon, 18 Nov 2013 22:23:59 +0100 Subject: [PATCH] We don't have HTTPError --- shreddit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shreddit b/shreddit index 7911c57..52b6c95 100755 --- a/shreddit +++ b/shreddit @@ -38,7 +38,7 @@ r = praw.Reddit(user_agent="Shreddit-PRAW 2.1") if _user and _pass: try: r.login(_user, _pass) - except HTTPError: + except: # Try again (often get 500 errors) sleep(10) r.login(_user, _pass)