summaryrefslogtreecommitdiff
path: root/imdb-lookup/imdbinfo.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-11-22 17:13:38 +0100
committerYves Fischer <yvesf-git@xapek.org>2014-11-22 17:13:38 +0100
commit6c6e6e6c838028b2cb54266d82ba9cc676838889 (patch)
treeae529b85dd6a1aee25509230e582bf344f2cb245 /imdb-lookup/imdbinfo.py
parent835f7491ed7a99f5e4feee474db1aff893751056 (diff)
downloadscripts-6c6e6e6c838028b2cb54266d82ba9cc676838889.tar.gz
scripts-6c6e6e6c838028b2cb54266d82ba9cc676838889.zip
exception handling
Diffstat (limited to 'imdb-lookup/imdbinfo.py')
-rwxr-xr-ximdb-lookup/imdbinfo.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py
index bb720ef..1e60fa7 100755
--- a/imdb-lookup/imdbinfo.py
+++ b/imdb-lookup/imdbinfo.py
@@ -111,6 +111,8 @@ class Protector(object):
def protected(*a, **kw):
try:
return attr(*a,**kw)
+ except KeyboardInterrupt as e:
+ raise e
except:
return None
if callable(attr):