Fixing error handling for the inbox command

This commit is contained in:
Michael Lazar
2018-01-21 19:38:35 -05:00
parent fe25e13dcd
commit 47e5414be0
5 changed files with 903 additions and 3 deletions

View File

@@ -159,6 +159,7 @@ class LoadScreen(object):
(praw.errors.InvalidCaptcha, 'Error, captcha required'),
(praw.errors.InvalidSubreddit, '{0.args[0]}'),
(praw.errors.PRAWException, '{0.__class__.__name__}'),
(requests.exceptions.Timeout, 'HTTP request timed out'),
(requests.exceptions.RequestException, '{0.__class__.__name__}'),
]