Ignore broken pipe on write

This commit is contained in:
bashrc committed 2021-06-22 17:11:18 +01:00
1 parent 939e053e5b
commit ffd0e15fa2
1 file changed
+2
+2
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)