mirror of https://gitlab.com/bashrc2/epicyon
Longer variable name
parent
155b62d6b1
commit
1d20d7f531
|
@ -20745,15 +20745,15 @@ class PubServerUnitTest(PubServer):
|
||||||
class EpicyonServer(ThreadingHTTPServer):
|
class EpicyonServer(ThreadingHTTPServer):
|
||||||
def handle_error(self, request, client_address):
|
def handle_error(self, request, client_address):
|
||||||
# surpress connection reset errors
|
# surpress connection reset errors
|
||||||
cls, e = sys.exc_info()[:2]
|
cls, e_ret = sys.exc_info()[:2]
|
||||||
if cls is ConnectionResetError:
|
if cls is ConnectionResetError:
|
||||||
if e.errno != errno.ECONNRESET:
|
if e_ret.errno != errno.ECONNRESET:
|
||||||
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e))
|
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e_ret))
|
||||||
pass
|
pass
|
||||||
elif cls is BrokenPipeError:
|
elif cls is BrokenPipeError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e))
|
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e_ret))
|
||||||
return HTTPServer.handle_error(self, request, client_address)
|
return HTTPServer.handle_error(self, request, client_address)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue