catch control-c action.

This commit is contained in:
2023-05-23 11:48:09 +09:00
parent 9d62d3fb6a
commit 9ed9c4d0f2
3 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,8 @@ def main() -> None:
except MDRSException as e:
print(f"Error: {e}")
sys.exit(2)
except KeyboardInterrupt:
sys.exit(130)
if __name__ == "__main__":