From b913990d803d65172d95523f4b46551869bb8baa Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Wed, 15 Jul 2015 13:15:38 -0700 Subject: [PATCH] Updated subreddit exception handling for PRAW 3. --- rtv/content.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtv/content.py b/rtv/content.py index 0507382..adb1e44 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -257,7 +257,8 @@ class SubredditContent(BaseContent): try: self.get(0) except (praw.errors.APIException, requests.HTTPError, - praw.errors.RedirectException): + praw.errors.RedirectException, praw.errors.Forbidden, + praw.errors.InvalidSubreddit): raise SubredditError(name) @classmethod