From 33390b74b748b52e8ff54cc29610c91f573cdf5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 6 Jul 2020 08:52:08 -0400 Subject: [PATCH] If keyboard interrupt (control c) is used, give quit prompt even if record that last partial pomodoro --- pomodoroprompt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pomodoroprompt.py b/pomodoroprompt.py index d1d586c..101e443 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -95,8 +95,7 @@ def main(): whatdid = pomodoro_prompt_report(whatnext) record_task(whatdid, start) log_step('Incomplete (' + time_spent + ') pomodoro: ' + whatdid, start, True) - else: - quit_prompt() + quit_prompt() else: print('What did you break?') # If we somehow end up here, try a last-ditch effort to save.