mirror of
https://github.com/kiviktnm/decman.git
synced 2026-11-04 00:30:16 +00:00
Handle KeyboardInterrupt
This commit is contained in:
1 file changed
+3
@@ -106,6 +106,9 @@ def main():
|
||||
)
|
||||
output.print_error("This may cause already completed operations to run again.")
|
||||
output.print_traceback()
|
||||
except KeyboardInterrupt:
|
||||
output.print_error("Interrupted by the user.")
|
||||
failed = True
|
||||
finally:
|
||||
os.chdir(original_wd)
|
||||
|
||||
|
||||
Reference in new issue
Block a user