From 92ed0092459b07f3316f3a4d324e0d9ddf503a23 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Sat, 19 Jul 2014 00:12:51 -0700 Subject: [PATCH] Add keyboard interrupt handler --- dotbot/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotbot/cli.py b/dotbot/cli.py index b9cc528..c280ca1 100644 --- a/dotbot/cli.py +++ b/dotbot/cli.py @@ -44,3 +44,6 @@ def main(): except (ReadingError, DispatchError) as e: log.error('%s' % e) exit(1) + except KeyboardInterrupt: + log.error('\n==> Operation aborted') + exit(1)