We don't have HTTPError

pull/11/head
David Trail 11 years ago
parent 74b0f3b27e
commit 144ccc1233

@ -38,7 +38,7 @@ r = praw.Reddit(user_agent="Shreddit-PRAW 2.1")
if _user and _pass: if _user and _pass:
try: try:
r.login(_user, _pass) r.login(_user, _pass)
except HTTPError: except:
# Try again (often get 500 errors) # Try again (often get 500 errors)
sleep(10) sleep(10)
r.login(_user, _pass) r.login(_user, _pass)

Loading…
Cancel
Save