diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:13:38 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:13:38 +0100 |
commit | 6c6e6e6c838028b2cb54266d82ba9cc676838889 (patch) | |
tree | ae529b85dd6a1aee25509230e582bf344f2cb245 /imdb-lookup | |
parent | 835f7491ed7a99f5e4feee474db1aff893751056 (diff) | |
download | scripts-6c6e6e6c838028b2cb54266d82ba9cc676838889.tar.gz scripts-6c6e6e6c838028b2cb54266d82ba9cc676838889.zip |
exception handling
Diffstat (limited to 'imdb-lookup')
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 2 |
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): |