mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Made CommandError use the exception directive in docs.
This commit is contained in:
@@ -255,7 +255,7 @@ Django 1.5 also includes several smaller improvements worth noting:
|
||||
|
||||
* Management commands do not raise ``SystemExit`` any more when called by code
|
||||
from :ref:`call_command <call-command>`. Any exception raised by the command
|
||||
(mostly :ref:`CommandError <ref-command-exceptions>`) is propagated.
|
||||
(mostly :exc:`~django.core.management.CommandError`) is propagated.
|
||||
|
||||
Moreover, when you output errors or messages in your custom commands, you
|
||||
should now use ``self.stdout.write('message')`` and
|
||||
|
||||
Reference in New Issue
Block a user