Handle broken pipe error

main
Bob Mottram 2021-06-21 17:38:00 +01:00
parent 7209d23ae7
commit 31a6dbd657
1 changed files with 2 additions and 0 deletions

View File

@ -14841,6 +14841,8 @@ class EpicyonServer(ThreadingHTTPServer):
if e.errno != errno.ECONNRESET:
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e))
pass
elif cls is BrokenPipeError:
pass
else:
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e))
return HTTPServer.handle_error(self, request, client_address)