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):