BaseCommand.execute() swallows ImportError, CommandError even when --traceback is used
|Reported by:||charles@…||Owned by:||aaugustin|
|Component:||Core (Management commands)||Version:||1.3|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
Any ImportError or CommandError happening during BaseCommand.execute() is emitted as a single-line exception, even if --traceback is used. This can make exceptions caused by import loops difficult to debug.
--traceback should be honored, emitting full stack traces.
Change History (7)
comment:1 Changed 4 years ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 4 years ago by aaugustin
- Has patch set
- Triage Stage changed from Unreviewed to Accepted
- Type changed from Uncategorized to Bug