Kaydet (Commit) a57a8e07 authored tarafından Vinay Sajip's avatar Vinay Sajip

Closes #15179: Merged fix from 3.2.

......@@ -801,7 +801,11 @@ class SysLogHandler(logging.Handler):
except socket.error:
self.socket.close()
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.socket.connect(address)
try:
self.socket.connect(address)
except socket.error:
self.socket.close()
raise
def encodePriority(self, facility, priority):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment