From aac5cd05d00078f9d9fb8e6d496cda79c8a7b365 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sun, 3 Mar 2019 17:51:33 -0500 Subject: [PATCH] Default to /r/popular instead of /r/front if the page cant be loaded at startup --- rtv/__main__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rtv/__main__.py b/rtv/__main__.py index cca0588..f64f21e 100755 --- a/rtv/__main__.py +++ b/rtv/__main__.py @@ -211,10 +211,11 @@ def main(): page = SubredditPage(reddit, term, config, oauth, name) except Exception as e: # If we can't load the subreddit that was requested, try - # to load the front page instead so at least the - # application still launches. + # to load the "popular" page instead so at least the + # application still launches. This used to use the user's + # front page, but some users have an empty front page. _logger.exception(e) - page = SubredditPage(reddit, term, config, oauth, 'front') + page = SubredditPage(reddit, term, config, oauth, 'popular') raise SubredditError('Unable to load {0}'.format(name)) if page is None: return