Changes between Initial Version and Version 2 of Ticket #28244
- Timestamp:
- May 26, 2017, 5:40:55 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28244
- Property Summary Exceptions inheriting from BaseException instead of Exception are not correctly handled → Exceptions derived from BaseException instead of Exception are not correctly handled
-
Ticket #28244 – Description
initial v2 9 9 programmers are encouraged to derive new exceptions from the `Exception` class or one of its subclasses, and not from `BaseException`. 10 10 11 So, if `BaseException` is used instead of `Exception`, Django's [https://github.com/django/django/blob/master/django/core/handlers/exception.py#L36 convert_exception_to_response] doesn't catch esit, and crashes instead:11 So, if `BaseException` is used instead of `Exception`, Django's [https://github.com/django/django/blob/master/django/core/handlers/exception.py#L36 convert_exception_to_response] doesn't catch it, and crashes instead: 12 12 13 13 {{{