If keyboard interrupt (control c) is used, give quit prompt even if record that last partial pomodoro

This commit is contained in:
benjamin melançon 2020-07-06 08:52:08 -04:00
parent cb333c4bc5
commit 33390b74b7

View file

@ -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.