Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b1b9ce + 3e6d71d commit a57a8e0Copy full SHA for a57a8e0
1 file changed
Lib/logging/handlers.py
@@ -801,7 +801,11 @@ def _connect_unixsocket(self, address):
801
except socket.error:
802
self.socket.close()
803
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
804
- self.socket.connect(address)
+ try:
805
+ self.socket.connect(address)
806
+ except socket.error:
807
+ self.socket.close()
808
+ raise
809
810
def encodePriority(self, facility, priority):
811
"""
0 commit comments