#62 spectool: handle Ctrl-C / KeyboardInterrupt gracefully
Merged by ngompa. Opened by decathorpe.
Unknown source master

Download 62.patch
  • remove unused subprocess import
  • handle Ctrl-C while downloading files and remove potential partially downloaded files
  • swallow KeyboardInterrupt exception, don't print stack trace when cancelling things with Ctrl-C

Seems to work as expected during light testing. The only weird thing is that requests_download seems to print another line of text to stdout even after the KeyboardInterrupt exception was handled. 🤔

LGTM. :thumbsup:

Pull-Request has been merged by ngompa

Metadata