diff options
author | Lucian Branescu Mihaila <lucian.branescu@gmail.com> | 2013-04-10 10:32:49 +0100 |
---|---|---|
committer | Lucian Branescu Mihaila <lucian.branescu@gmail.com> | 2013-04-10 10:32:49 +0100 |
commit | a9a76239d44733738ab62b5ef5a350785cc1bfd9 (patch) | |
tree | e46ef25f18315c050c8decb3e530de6f7532fd82 /redis/client.py | |
parent | 8063b1021718f1eb1ab87530358e70fb171f5cba (diff) | |
download | redis-py-a9a76239d44733738ab62b5ef5a350785cc1bfd9.tar.gz |
Catch exception, not anything (which could be KeyboardInterrupt).
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 8db2b0e..848d06f 100644 --- a/redis/client.py +++ b/redis/client.py @@ -1474,7 +1474,7 @@ class PubSub(object): if self.connection and (self.channels or self.patterns): self.connection.disconnect() self.reset() - except: + except Exception: pass def reset(self): @@ -1632,7 +1632,7 @@ class BasePipeline(object): def __del__(self): try: self.reset() - except: + except Exception: pass def __len__(self): |