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:
Max Goodman
2013-07-05 15:06:47 -07:00
parent 23a4cdc965
commit 483b868aaa

View File

@@ -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,