From b32439bd0b2f35fa454a5604016d299834314ccc Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Thu, 30 Jun 2022 18:44:01 +0200 Subject: bring back the code that waits and checks the manipulation I think I accidentally removed the code that for non-zapper branch of logic waited for the manipulation to be done. Fixes: LP: #1980372 --- bin/removable_storage_watcher.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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__": -- cgit v1.2.3