Ticket #10758: patch.diff

File patch.diff, 1.1 KB (added by kevinh, 14 years ago)

fixes both issues.

  • django/core/handlers/base.py

     
    135135            except SystemExit:
    136136                # Allow sys.exit() to actually exit. See tickets #1023 and #4701
    137137                raise
    138             except: # Handle everything else, including SuspiciousOperation, etc.
     138            except Exception: # Handle everything else, including SuspiciousOperation, etc.
    139139                # Get the exception info now, in case another exception is thrown later.
    140                 exc_info = sys.exc_info()
    141140                receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
    142                 return self.handle_uncaught_exception(request, resolver, exc_info)
     141                return self.handle_uncaught_exception(request, resolver, sys.exc_info())
    143142        finally:
    144143            # Reset URLconf for this thread on the way out for complete
    145144            # isolation of request.urlconf
Back to Top