From 9378229c5e60c9072f35a488ac9d46149abeeb56 Mon Sep 17 00:00:00 2001 From: Dunedan Date: Sun, 3 Apr 2016 11:52:57 +0200 Subject: [PATCH] Merge pull request #6389 from Dunedan/ticket_25420 Fixed #25420 -- Documented bash completion exit code behavior. --- django/core/management/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 2495d38642..eef52e74ba 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -276,7 +276,10 @@ class ManagementUtility(object): if option[1]: opt_label += '=' print(opt_label) - sys.exit(1) + # Exit code of the bash completion function is never passed back to + # the user, so it's safe to always exit with 0. + # For more details see #25420. + sys.exit(0) def execute(self): """