You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/mking/devel/python/personal/evennia/cmdhandler.py", line 150,
in handle
cmd(cdat)
File "/home/mking/devel/python/personal/evennia/commands/general.py",
line 466, in cmd_help
session.msg("\r\n%s%s%s" % (ansi.ansi["hilite"], topic.get_topicname(),
ansi.ansi["normal"]))
File "/home/mking/devel/python/personal/evennia/session.py", line 170, in msg
self.sendLine("%s" % (message,))
File "/usr/lib/python2.5/site-packages/twisted/protocols/basic.py", line
277, in sendLine
return self.transport.write(line + self.delimiter)
File "/usr/lib/python2.5/site-packages/twisted/internet/abstract.py",
line 165, in write
raise TypeError("Data must not be unicode")
TypeError: Data must not be unicode
Django committed their "everything is unicode" to trunk a while back, so I'm going to
update session.py to check if it's unicode, if it is, do msg.encode("utf-8").
From tsalar...@gmail.com on September 14, 2007 15:28:25
Traceback (most recent call last):
File "/home/mking/devel/python/personal/evennia/cmdhandler.py", line 150,
in handle
cmd(cdat)
File "/home/mking/devel/python/personal/evennia/commands/general.py",
line 466, in cmd_help
session.msg("\r\n%s%s%s" % (ansi.ansi["hilite"], topic.get_topicname(),
ansi.ansi["normal"]))
File "/home/mking/devel/python/personal/evennia/session.py", line 170, in msg
self.sendLine("%s" % (message,))
File "/usr/lib/python2.5/site-packages/twisted/protocols/basic.py", line
277, in sendLine
return self.transport.write(line + self.delimiter)
File "/usr/lib/python2.5/site-packages/twisted/internet/abstract.py",
line 165, in write
raise TypeError("Data must not be unicode")
TypeError: Data must not be unicode
Original issue: http://code.google.com/p/evennia/issues/detail?id=36
The text was updated successfully, but these errors were encountered: