From 483b868aaa2ed3a726720fa16a501435a096fd17 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Fri, 5 Jul 2013 15:06:47 -0700 Subject: [PATCH] Be strict about validation errors having status codes. Hoping to avoid a silent non-handling of an error causing a security issue someday. --- r2/r2/controllers/multi.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/r2/r2/controllers/multi.py b/r2/r2/controllers/multi.py index 2f1775861..816070bd1 100644 --- a/r2/r2/controllers/multi.py +++ b/r2/r2/controllers/multi.py @@ -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,