Tweak exception handling

This commit is contained in:
XANTRONIX Development 2024-12-04 23:28:25 -05:00
parent ff19d88c3e
commit 71fcf0960b
2 changed files with 2 additions and 4 deletions

View file

@ -62,7 +62,7 @@ class Server():
try:
session.handle()
except ssl.SSLEOFError as e:
except (ssl.SSLEOFError, ssl.SSLError):
pass
thread = threading.Thread(target=spawn)

View file

@ -875,7 +875,5 @@ class Session(Connection):
self.handle_command()
self.sock.close()
except BrokenPipeError:
pass
except ConnectionResetError:
except (BrokenPipeError, ConnectionResetError):
pass