Check for a valid session on the webclient_options monitor handler

This commit is contained in:
Simon Vermeersch 2017-01-22 13:13:32 +01:00 committed by Griatch
parent 254a746770
commit 67d3f6650e

View file

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