diff options
-rwxr-xr-x | ckandumper | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -359,12 +359,6 @@ if __name__ == "__main__": duration = str(datetime.timedelta(seconds=interval)) print(f'Done. Elapsed time: {duration}') - except FileNotFoundError as e: - print(e) - exit(1) - except KeyboardInterrupt as e: - print(e) - exit(1) - except subprocess.CalledProcessError as e: + except (FileNotFoundError, KeyboardInterrupt, subprocess.CalledProcessError) as e: print(e) exit(1) |