diff options
author | Devan Franchini <twitch153@gentoo.org> | 2016-11-09 21:57:51 -0500 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2016-11-09 21:57:54 -0500 |
commit | 75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72 (patch) | |
tree | 9eb6eaef04846a8e916de763df7c3d109032002a | |
parent | utils.py: Removes catching KeyboardInterrupt (diff) | |
download | layman-75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72.tar.gz layman-75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72.tar.bz2 layman-75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72.zip |
bin/layman: Adds exception handling on ^c bug 539336
-rwxr-xr-x | bin/layman | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -42,4 +42,7 @@ except KeyError: pass main = Main(ArgsParser(root=root)) -main() +try: + main() +except KeyboardInterrupt: + print('Interrupt received, exiting...') |