mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
added error handling to blanket try/except blocks in ErrorController._before__ and __after__
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user