mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #18387 -- Do not call sys.exit during call_command.
Moved sys.exit(1) so as failing management commands reach it only when running from command line.
This commit is contained in:
@@ -75,6 +75,10 @@ Django 1.5 also includes several smaller improvements worth noting:
|
||||
|
||||
* The generic views support OPTIONS requests.
|
||||
|
||||
* 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.
|
||||
|
||||
* The dumpdata management command outputs one row at a time, preventing
|
||||
out-of-memory errors when dumping large datasets.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user