aboutsummaryrefslogtreecommitdiff
path: root/fshare.py
diff options
context:
space:
mode:
Diffstat (limited to 'fshare.py')
-rwxr-xr-xfshare.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fshare.py b/fshare.py
index 5e48e94..e1bc684 100755
--- a/fshare.py
+++ b/fshare.py
@@ -405,3 +405,6 @@ with contextlib.ExitStack() as stack:
except StateCorruptError:
logger.error('Corrupted state file')
sys.exit(1)
+ except KeyboardInterrupt:
+ logger.info('Interrupted, exiting')
+ sys.exit(0)