Processing for any otherwise uncaught exceptions (those that will generate HTTP 500 responses).
(request, resolver, exc_info)
| 172 | |
| 173 | |
| 174 | def handle_uncaught_exception(request, resolver, exc_info): |
| 175 | """ |
| 176 | Processing for any otherwise uncaught exceptions (those that will |
| 177 | generate HTTP 500 responses). |
| 178 | """ |
| 179 | if settings.DEBUG_PROPAGATE_EXCEPTIONS: |
| 180 | raise |
| 181 | |
| 182 | if settings.DEBUG: |
| 183 | return debug.technical_500_response(request, *exc_info) |
| 184 | |
| 185 | # Return an HttpResponse that displays a friendly error message. |
| 186 | callback = resolver.resolve_error_handler(500) |
| 187 | return callback(request) |
no test coverage detected