summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py4
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):