mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Default RedditError status code to 400.
When threading validator errors through to reddit_http_error, it is useful to be able to assume that status code is a valid number in all cases.
This commit is contained in:
@@ -141,7 +141,7 @@ def add_error_codes(new_codes):
|
||||
class RedditError(Exception):
|
||||
name = None
|
||||
fields = None
|
||||
code = None
|
||||
code = 400
|
||||
|
||||
def __init__(self, name=None, msg_params=None, fields=None, code=None):
|
||||
Exception.__init__(self)
|
||||
|
||||
Reference in New Issue
Block a user