diff --git a/choose_best_layout.py b/choose_best_layout.py index 8ac4dc2..ca47e96 100644 --- a/choose_best_layout.py +++ b/choose_best_layout.py @@ -165,4 +165,9 @@ def main() -> None: if __name__ == "__main__": - main() + try: + main() + except KeyboardInterrupt: + print("\nInterrupted by user.", file=sys.stderr) + sys.exit(130) +