#36016: Avoid traceback when quitting makemigrations with Ctrl-C
------------------------------+--------------------------------------
Reporter: Adam Johnson | Owner: (none)
Type: New feature | Status: new
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by amansharma612):
I think one possible way to implement this would be to add an `except
KeyboardInterrupt` statement in the `_choice_input` definition in
`questioner.py` and moving the `result = input()` statement inside the try
block. I can open a PR for the same if seems reasonable.
--
Ticket URL: <https://code.djangoproject.com/ticket/36016#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070193d08fd973-89a6ceb1-b125-41f6-bd58-8f47a3f4d032-000000%40eu-central-1.amazonses.com.