From f16c58bc42bf07ed8341046f74f442e8437c4aba Mon Sep 17 00:00:00 2001 From: KeyserSosa Date: Wed, 22 Oct 2008 15:31:30 -0700 Subject: [PATCH] added error handling to blanket try/except blocks in ErrorController._before__ and __after__ --- r2/r2/controllers/error.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r2/r2/controllers/error.py b/r2/r2/controllers/error.py index 015013e32..7a1914b0d 100644 --- a/r2/r2/controllers/error.py +++ b/r2/r2/controllers/error.py @@ -87,13 +87,13 @@ class ErrorController(RedditController): try: RedditController.__before__(self) except: - pass + handle_awful_failure("Error occurred in ErrorController.__before__") def __after__(self): try: RedditController.__after__(self) except: - pass + handle_awful_failure("Error occurred in ErrorController.__after__") def __call__(self, environ, start_response): try: