Skip to content

Commit 2dadb56

Browse files
authored
Merge branch 'master' into ps_remove_redis_gears
2 parents 420bf80 + daf6655 commit 2dadb56

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/stale-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ jobs:
2121
days-before-close: 30
2222
stale-issue-label: "Stale"
2323
stale-pr-label: "Stale"
24-
operations-per-run: 10
24+
operations-per-run: 20
2525
remove-stale-when-updated: true

redis/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,10 @@ def __exit__(self, exc_type, exc_value, traceback):
570570
self.close()
571571

572572
def __del__(self):
573-
self.close()
573+
try:
574+
self.close()
575+
except Exception:
576+
pass
574577

575578
def close(self) -> None:
576579
# In case a connection property does not yet exist

redis/cluster.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,10 @@ def __exit__(self, exc_type, exc_value, traceback):
662662
self.close()
663663

664664
def __del__(self):
665-
self.close()
665+
try:
666+
self.close()
667+
except Exception:
668+
pass
666669

667670
def disconnect_connection_pools(self):
668671
for node in self.get_nodes():

0 commit comments

Comments
 (0)