Changes between Initial Version and Version 3 of Ticket #30318
- Timestamp:
- Apr 3, 2019, 6:24:59 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30318
- Property Owner changed from to
- Property Status new → assigned
- Property Severity Normal → Release blocker
- Property Triage Stage Unreviewed → Accepted
- Property Type Uncategorized → Bug
- Property Summary Add new system check message when 'path.to.view' is cannot be imported → Add new system check message when custom error handler 'path.to.view' cannot be imported
-
Ticket #30318 – Description
initial v3 1 1 #29642 added checks for the signatures of custom error handlers. 2 2 3 When the 'path.to.view' cannot be imported, it raises ModuleNotFoundError , as seen in this Stack Overflow question3 When the 'path.to.view' cannot be imported, it raises ModuleNotFoundError or ViewDoesNotExist, as seen in this Stack Overflow question: 4 4 5 5 https://stackoverflow.com/q/55481810/113962 6 6 7 I suggest we catch the ModuleNotFoundError, and add another check code, e.g.7 I suggest we catch the exception, and add another check code, e.g. 8 8 9 {{{ 9 10 * **urls.E008**: The custom ``handlerXXX`` view ``'path.to.view'`` cannot be imported. 11 }}}