From 7affd375c506e74311e5b562e1a96db623c532d3 Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Thu, 1 Aug 2024 12:07:27 -0400 Subject: [PATCH] added second exit --- collect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/collect.py b/collect.py index 06651f7..ae46e06 100644 --- a/collect.py +++ b/collect.py @@ -380,7 +380,10 @@ def main(): print(f"{i} ", end="", flush=True) time.sleep(minutesToWait * 60) print("") + except KeyboardInterrupt: + exit() + try: print("Starting Collection") # Collect data