From 58f13856856a35fa66f2237d24f7e2b337fdc65d Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 1 Oct 2014 10:34:16 +0200 Subject: [PATCH] Handling user abort --- songbook | 3 +++ 1 file changed, 3 insertions(+) diff --git a/songbook b/songbook index 06b79bba..e3bcf555 100755 --- a/songbook +++ b/songbook @@ -145,6 +145,9 @@ def main(): "Running again with option '-v' may give more information." ) sys.exit(1) + except KeyboardInterrupt: + LOGGER.warning("Aborted by user.") + sys.exit(1) sys.exit(0)