mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Closes #15179: Merged fix from 3.2.
This commit is contained in:
commit
a57a8e072c
1 changed files with 5 additions and 1 deletions
|
@ -801,7 +801,11 @@ class SysLogHandler(logging.Handler):
|
||||||
except socket.error:
|
except socket.error:
|
||||||
self.socket.close()
|
self.socket.close()
|
||||||
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
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):
|
def encodePriority(self, facility, priority):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue