summaryrefslogtreecommitdiff
path: root/django/core/handlers/exception.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed CVE-2023-24580 -- Prevented DoS with too many uploaded files.Markus Holtermann2023-02-141-1/+2
| | | | Thanks to Jakob Ackermann for the report.
* Refs #34118 -- Adopted asgiref coroutine detection shims.Carlton Gibson2022-12-201-3/+2
| | | Thanks to Mariusz Felisiak for review.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-17/+52
|
* Changed django.utils.log.log_response() to take exception instance.Adam Johnson2022-01-121-4/+4
| | | | | | There's little point retrieving a fresh reference to the exception in the legacy tuple format, when it's all available via the exception instance we already have.
* Added exception to SuspiciousOperation logging.Adam Johnson2022-01-121-0/+1
| | | This allows better debugging and filtering of errors.
* Removed unreachable SystemExit check.Adam Johnson2021-01-191-4/+0
| | | | | | | | | This check dates back to Python <2.5, before Python introduced BaseException to prevent exactly unwarranted catching of SystemExit (and others). response_for_exception() is only called under `except Exception` or `except Http404` so it's now impossible for a SystemExit instance to reach the branch.
* Fixed #32128 -- Added asgiref 3.3 compatibility.Carlton Gibson2020-10-271-1/+1
| | | | | Thread sensitive parameter is True by default from asgiref v3.3.0. Added an explicit thread_sensitive=False to previously implicit uses.
* Fixed #31962 -- Made SessionMiddleware raise SessionInterrupted when session ↵Hasan Ramezani2020-09-091-1/+12
| | | | destroyed while request is processing.
* Removed unused param_dict return from URLResolver.resolve_error_handler().Adam Johnson2020-06-221-4/+4
| | | Unused since its introduction in ed114e15106192b22ebb78ef5bf5bce72b419d13.
* Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin2020-03-181-8/+21
| | | | | This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
* Corrected docs and removed unused code for got_request_exception signal's ↵Tim Graham2018-11-201-2/+2
| | | | | | sender argument. Inaccurate since 7d1b69dbe7f72ac04d2513f0468fe2146231b286.
* Fixed #26688 -- Fixed HTTP request logging inconsistencies.Samir Shah2018-05-041-14/+17
| | | | | * Added logging of 500 responses for instantiated responses. * Added logging of all 4xx and 5xx responses.
* Fixed imports per isort 4.3.1.Tim Graham2018-02-021-1/+2
| | | | Partially reverted 9bcf73d788866bc93f8248cb2e9d601ecbc4b50c.
* Fixed imports per isort 4.3.0.Mariusz Felisiak2018-02-011-2/+1
|
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-1/+1
|
* Refs #27795 -- Replaced many force_text() with str()Claude Paroz2017-04-271-2/+1
| | | | Thanks Tim Graham for the review.
* Fixed #27820 -- Fixed RequestDataTooBig/TooManyFieldsSent crash.amalia2017-02-131-1/+9
|
* Refs #23919 -- Removed django.utils.decorators.available_attrs() usage.Tim Graham2017-01-211-2/+1
| | | It's only needed to workaround a bug on Python 2.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Refs #24733 -- Removed support for error views without the exception parameter.Tim Graham2017-01-171-14/+1
| | | | Per deprecation timeline.
* Refs #12594 -- Removed obsolete exception handling in ↵Tim Graham2016-06-241-4/+0
| | | | | handle_uncaught_exception(). Since 859fc020a7c5ce30784d6388858ffbc613ef6612, this is no longer needed.
* Refs #24829 -- Made TemplateResponse.content available sooner in exception ↵Claude Paroz2016-06-241-0/+4
| | | | | | context Thanks Tim Graham for the initial patch.
* Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware ↵Carl Meyer2016-06-171-0/+135
exception handling.