Debug message for broken pipe

main
Bob Mottram 2021-06-22 21:51:16 +01:00
parent fff61b9812
commit 7c0b0fb195
1 changed files with 2 additions and 0 deletions

View File

@ -821,6 +821,8 @@ class PubServer(BaseHTTPRequestHandler):
self.wfile.write(msg)
return True
except BrokenPipeError as e:
if self.server.debug:
print('ERROR: _write error ' + str(tries) + ' ' + str(e))
break
except Exception as e:
print('ERROR: _write error ' + str(tries) + ' ' + str(e))