Skip to content

Commit 7456b2e

Browse files
committed
refactor(lint): address Codacy try-except-pass warning in watchdog
1 parent 47d270d commit 7456b2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pubnub/request_handlers/httpx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def _force_shutdown_connections(session):
113113
sock.shutdown(socket.SHUT_RDWR)
114114
except (OSError, Exception):
115115
pass
116-
except Exception:
117-
pass
116+
except Exception as e:
117+
logger.debug(f"Error iterating connection pool: {e}")
118118
try:
119119
session.close()
120120
except Exception as e:

0 commit comments

Comments
 (0)