From 68f30b2e07d97e19754ea90cb9d0701fe5623c60 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Mon, 30 Mar 2015 01:02:49 -0700 Subject: [PATCH] Fixed crash on invalid subreddit. --- rtv/content.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtv/content.py b/rtv/content.py index 42b3224..b9657f1 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -289,7 +289,8 @@ class SubredditContent(BaseContent): content = cls(display_name, submissions, loader) try: content.get(0) - except (praw.errors.APIException, requests.HTTPError): + except (praw.errors.APIException, requests.HTTPError, + praw.errors.RedirectException): raise SubredditError(display_name) return content