Fixed a simple issue if non-text was fed into the msg() call from server-side. Resolves #965.

This commit is contained in:
Griatch 2016-04-25 22:54:10 +02:00
parent b69340695f
commit b00e357868
2 changed files with 2 additions and 0 deletions

View file

@ -501,6 +501,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
except Exception:
logger.log_trace()
text = None if text is None else str(text)
kwargs["options"] = options
# relay to session(s)

View file

@ -416,6 +416,7 @@ class DefaultPlayer(with_metaclass(TypeclassBase, PlayerDB)):
except Exception:
pass
text = None if text is None else str(text)
kwargs["options"] = options
# session relay