From 109c996ce21b8010cdba4f0b94ff12c132265fc5 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 8 Nov 2024 09:55:31 -0800 Subject: [PATCH] Keep ctrl-c support for non-unix systems --- internetarchive/cli/ia.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internetarchive/cli/ia.py b/internetarchive/cli/ia.py index bbcad90e..0fbdf590 100755 --- a/internetarchive/cli/ia.py +++ b/internetarchive/cli/ia.py @@ -40,14 +40,16 @@ ) from internetarchive.cli.cli_utils import exit_on_signal -# Handle and broken pipe +# Handle broken pipe try: signal.signal(signal.SIGPIPE, signal.SIG_DFL) - signal.signal(signal.SIGINT, exit_on_signal) except AttributeError: # Non-unix support pass +# Handle +signal.signal(signal.SIGINT, exit_on_signal) + def validate_config_path(path): """