1
0
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:
Tim Graham
2016-01-12 12:28:55 -05:00
parent c68ce18712
commit 555f8e9d5c
4 changed files with 10 additions and 12 deletions

View File

@@ -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