diff options
Diffstat (limited to 'bin')
-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__": |