Opened 9 years ago

Last modified 9 years ago

#25420 closed Bug

Completion helper always with exit-code 1 — at Initial Version

Reported by: Daniel Hahler Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The handler for (Bash) autocompletion exists with code 1 always, which is not helpful in case you want to catch errors, e.g. because some imports failed.

Code reference: https://github.com/django/django/blob/bac13074ee5bf6b35e45370fc8b9b14448c765dd/django/core/management/__init__.py#L270

It should exit with 0 by default instead.

It was added in 677ddcbb04, and it does not look like it would be handled / expected by the Bash wrapper, but I have not checked it.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top