diff options
author | PMR <pmr@pmr-lander> | 2022-07-04 09:18:05 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2022-07-04 09:18:05 +0000 |
commit | 167d87709532b6aa594cd4da21f65b3f45005446 (patch) | |
tree | 05ecef9ad925a0548f1f5f547e1b741a019872a3 | |
parent | 7dbe269732b79f520554c1b747304cd6265c7f86 (diff) | |
parent | 588dc612774bbd2414e9e7aa67d7920dd75d4de4 (diff) |
Merge branch 'master' into release
-rwxr-xr-x | bin/removable_storage_watcher.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/removable_storage_watcher.py b/bin/removable_storage_watcher.py index 7208954..988abc3 100755 --- a/bin/removable_storage_watcher.py +++ b/bin/removable_storage_watcher.py @@ -948,6 +948,10 @@ def main(): else: print("\n\n{} NOW\n\n".format(args.action.upper()), flush=True) + try: + return listener.check(args.timeout) + except KeyboardInterrupt: + return 1 if __name__ == "__main__": |