From 6c6e6e6c838028b2cb54266d82ba9cc676838889 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 22 Nov 2014 17:13:38 +0100 Subject: exception handling --- imdb-lookup/imdbinfo.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'imdb-lookup') 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): -- cgit v1.2.1