From 67d3f6650ea43c7cc4b946a05489a6138fa45eea Mon Sep 17 00:00:00 2001 From: Simon Vermeersch Date: Sun, 22 Jan 2017 13:13:32 +0100 Subject: [PATCH] Check for a valid session on the webclient_options monitor handler --- evennia/server/inputfuncs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/evennia/server/inputfuncs.py b/evennia/server/inputfuncs.py index 6ed727c2e8..ba9547d492 100644 --- a/evennia/server/inputfuncs.py +++ b/evennia/server/inputfuncs.py @@ -433,7 +433,10 @@ def _on_webclient_options_change(**kwargs): fieldname = kwargs["fieldname"] clientoptions = _GA(obj, fieldname) - session.msg(webclient_options=clientoptions) + # the session may be None if the char quits and someone + # else then edits the object + if session: + session.msg(webclient_options=clientoptions) def webclient_options(session, *args, **kwargs):