#536 Catch keyboard interrupt
Closed: Fixed None Opened 11 years ago by edewata.

Python scripts shows a stack trace on keyboard interrupt (Ctrl-C) which is not very user-friendly:

% pkispawn
Subsystem (CA/KRA/OCSP/TKS) [CA]: ^CTraceback (most recent call last):
  File "/sbin/pkispawn", line 405, in <module>
    main(sys.argv)
  File "/sbin/pkispawn", line 133, in main
    default='CA', caseSensitive=False).upper()
  File "/usr/lib/python2.7/site-packages/pki/deployment/pkiparser.py", line 263, in read_text
    value = raw_input(message)
KeyboardInterrupt

The scripts should catch the KeyboardInterrupt and display a better message:

% pkispawn
Subsystem (CA/KRA/OCSP/TKS) [CA]: ^C

Installation canceled.

Fixed and pushed to master in 3e70f3ea2abd3f6c855ff433b4b1ee5e0312417c

Metadata Update from @edewata:
- Issue assigned to kaskahn
- Issue set to the milestone: 10.0.2

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1106

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata