BaseCommand.execute() swallows ImportError, CommandError even when --traceback is used
|Reported by:||Owned by:||Aymeric Augustin|
|Component:||Core (Management commands)||Version:||1.3|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
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:3 Changed 5 years ago by
|Triage Stage:||Unreviewed → Accepted|
|Type:||Uncategorized → Bug|