call 'sys.exit()' on Ctrl+c
This commit is contained in:
@@ -248,7 +248,7 @@ def main():
|
||||
log.error("No suitable extractor found for '%s'", url)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print("\nKeyboardInterrupt", file=sys.stderr)
|
||||
sys.exit("\nKeyboardInterrupt")
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
except IOError as exc:
|
||||
|
||||
Reference in New Issue
Block a user