diff --git a/django/core/handlers/exception.py b/django/core/handlers/exception.py
index f1c7b57..5732550 100644
a
|
b
|
def response_for_exception(request, exc):
|
80 | 80 | # Allow sys.exit() to actually exit. See tickets #1023 and #4701 |
81 | 81 | raise |
82 | 82 | |
| 83 | elif exc: |
| 84 | # Check all exception from request |
| 85 | if settings.DEBUG: |
| 86 | response = debug.technical_404_response(request, exc) |
| 87 | else: |
| 88 | response = get_exception_response(request, get_resolver(get_urlconf()), 404, exc) |
| 89 | |
83 | 90 | else: |
84 | 91 | signals.got_request_exception.send(sender=None, request=request) |
85 | 92 | response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info()) |