Don't cause exception on unknown telnet disable negotiation. Addresses #2044 (but does not yet fix it).

This commit is contained in:
Griatch 2020-01-30 09:55:18 +01:00
parent 38eb779643
commit 1eacae3ac5

View file

@ -225,7 +225,11 @@ class TelnetProtocol(Telnet, StatefulTelnetProtocol, Session):
self.mccp.no_mccp(option)
return True
else:
return super().disableLocal(option)
try:
return super().disableLocal(option)
except Exception:
from evennia.utils import logger
logger.log_trace()
def connectionLost(self, reason):
"""