From ab2680ea8abbc29d8ae6ea03df1356f7c2e03ca1 Mon Sep 17 00:00:00 2001 From: David Trail Date: Fri, 3 Jul 2015 12:34:51 +0100 Subject: [PATCH] Issue brought up on youtube video by InzMovi --- shreddit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shreddit.py b/shreddit.py index 2554346..ee86f7e 100755 --- a/shreddit.py +++ b/shreddit.py @@ -11,7 +11,7 @@ from datetime import datetime, timedelta import praw from praw.errors import InvalidUser, InvalidUserPass, RateLimitExceeded, \ - HTTPException + HTTPException, OAuthAppRequired from praw.objects import Comment, Submission try: @@ -78,7 +78,7 @@ def login(user=None, password=None): r.refresh_access_information() if verbose: print("Logged in with OAuth.") - except HTTPException: + except (HTTPException, OAuthAppRequired) as e: try: if user and password: r.login(_user, _pass)