Ignore broken pipe on write

main
Bob Mottram 2021-06-22 17:11:18 +01:00
parent 939e053e5b
commit ffd0e15fa2
1 changed files with 2 additions and 0 deletions

View File

@ -820,6 +820,8 @@ class PubServer(BaseHTTPRequestHandler):
try:
self.wfile.write(msg)
return True
except BrokenPipeError as e:
break
except Exception as e:
print('ERROR: _write error ' + str(tries) + ' ' + str(e))
time.sleep(0.5)