mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Be strict about validation errors having status codes.
Hoping to avoid a silent non-handling of an error causing a security issue someday.
This commit is contained in:
@@ -60,9 +60,6 @@ class MultiApiController(RedditController, OAuth2ResourceController):
|
||||
RedditController.pre(self)
|
||||
|
||||
def on_validation_error(self, error):
|
||||
if not error.code:
|
||||
return
|
||||
|
||||
abort(reddit_http_error(
|
||||
code=error.code,
|
||||
error_name=error.name,
|
||||
|
||||
Reference in New Issue
Block a user