diff options
author | Anish Athalye <me@anishathalye.com> | 2014-07-19 00:12:51 -0700 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2014-07-19 00:29:49 -0700 |
commit | 92ed0092459b07f3316f3a4d324e0d9ddf503a23 (patch) | |
tree | 5194fcd702a1a8df487d960b66f09d362d73d930 /dotbot/cli.py | |
parent | 5394184d14b0acb714a32f26d3d60ed5b4fbb3c0 (diff) |
Add keyboard interrupt handler
Diffstat (limited to 'dotbot/cli.py')
-rw-r--r-- | dotbot/cli.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |