catch error when there are no results
This commit is contained in:
@@ -64,8 +64,11 @@ class SubredditPage(BasePage):
|
||||
|
||||
search = text_input(window)
|
||||
if search is not None:
|
||||
try:
|
||||
self.content = SubredditContent.from_name(self.reddit, name,
|
||||
self.loader, search=search)
|
||||
except:
|
||||
show_notification(self.stdscr, ['No results found'])
|
||||
|
||||
@SubredditController.register('/')
|
||||
def prompt_subreddit(self):
|
||||
|
||||
Reference in New Issue
Block a user