mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Small bugfix to cmdhandler to avoid a unicode-related traceback.
. Griatch
This commit is contained in:
parent
4d9081d710
commit
1e2fba9680
1 changed files with 3 additions and 1 deletions
|
|
@ -137,7 +137,9 @@ class Command(object):
|
|||
"""
|
||||
# If we get a unicode string with un-recognizable characters, replace
|
||||
# them instead of throwing errors.
|
||||
self.raw_input = unicode(raw_input, errors='replace')
|
||||
self.raw_input = raw_input
|
||||
if not isinstance(raw_input, unicode):
|
||||
self.raw_input = unicode(raw_input, errors='replace')
|
||||
self.source_object = source_object
|
||||
self.session = session
|
||||
# The work starts here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue