Changes between Initial Version and Version 2 of Ticket #28244


Ignore:
Timestamp:
May 26, 2017, 5:40:55 PM (7 years ago)
Author:
alexpirine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28244

    • Property Summary Exceptions inheriting from BaseException instead of Exception are not correctly handledExceptions derived from BaseException instead of Exception are not correctly handled
  • Ticket #28244 – Description

    initial v2  
    99  programmers are encouraged to derive new exceptions from the `Exception` class or one of its subclasses, and not from `BaseException`.
    1010
    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 catches it, and crashes instead:
     11So, 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:
    1212
    1313{{{
Back to Top