call 'sys.exit()' on Ctrl+c

This commit is contained in:
Mike Fährmann
2019-09-10 16:46:38 +02:00
parent 9178b54eae
commit 5ac9732adc

View File

@@ -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: