Ticket #14968: catch_base_exception.diff
File catch_base_exception.diff, 643 bytes (added by , 14 years ago) |
---|
-
django/core/handlers/base.py
98 98 99 99 try: 100 100 response = callback(request, *callback_args, **callback_kwargs) 101 except Exception, e:101 except BaseException, e: 102 102 # If the view raised an exception, run it through exception 103 103 # middleware, and if the exception middleware returns a 104 104 # response, use that. Otherwise, reraise the exception.