forked from indymedia/epicyon
Simplify
parent
26c74f91cb
commit
f9067de19f
|
@ -8881,7 +8881,7 @@ 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 = sys.exc_info()[:2]
|
||||||
if cls is socket.error or cls is ConnectionResetError:
|
if cls is ConnectionResetError:
|
||||||
print('ERROR: ' + str(cls) + ", " + str(e))
|
print('ERROR: ' + str(cls) + ", " + str(e))
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue