diff --git a/main.py b/main.py index d58396f..8d79945 100644 --- a/main.py +++ b/main.py @@ -159,6 +159,8 @@ def main(): else: console.print("[yellow]No new messages or an error occurred. Retrying...[/yellow]") time.sleep(5) # Wait 5 seconds before retrying on error + except KeyboardInterrupt: + pass # Exit gracefully on Ctrl+C finally: log_file.close() save_log = input(f"\nDo you want to save the chat log to {log_filename}? (y/n): ").lower()