aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2016-11-09 21:57:51 -0500
committerDevan Franchini <twitch153@gentoo.org>2016-11-09 21:57:54 -0500
commit75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72 (patch)
tree9eb6eaef04846a8e916de763df7c3d109032002a
parentutils.py: Removes catching KeyboardInterrupt (diff)
downloadlayman-75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72.tar.gz
layman-75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72.tar.bz2
layman-75899bb9d56f9125fc1bda496eb0e8ff9c2b6e72.zip
bin/layman: Adds exception handling on ^c bug 539336
-rwxr-xr-xbin/layman5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/layman b/bin/layman
index ba91c20..fbb793b 100755
--- a/bin/layman
+++ b/bin/layman
@@ -42,4 +42,7 @@ except KeyError:
pass
main = Main(ArgsParser(root=root))
-main()
+try:
+ main()
+except KeyboardInterrupt:
+ print('Interrupt received, exiting...')