diff options
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/redis/client.py b/redis/client.py index fe697f6..9cb60f5 100755 --- a/redis/client.py +++ b/redis/client.py @@ -3375,13 +3375,10 @@ class PubSub(object): self.reset() def __del__(self): - try: - # if this object went out of scope prior to shutting down - # subscriptions, close the connection manually before - # returning it to the connection pool - self.reset() - except Exception: - pass + # if this object went out of scope prior to shutting down + # subscriptions, close the connection manually before + # returning it to the connection pool + self.reset() def reset(self): if self.connection: @@ -3730,10 +3727,7 @@ class Pipeline(Redis): self.reset() def __del__(self): - try: - self.reset() - except Exception: - pass + self.reset() def __len__(self): return len(self.command_stack) |