Another small parser fix.
This commit is contained in:
parent
7e521c0019
commit
b09870bb03
1 changed files with 6 additions and 1 deletions
|
@ -702,7 +702,12 @@ def kxhandleInput(ctx, text=None, flavor=None):
|
|||
return
|
||||
|
||||
# Debug output.
|
||||
print msg
|
||||
try:
|
||||
# Turns out that Windows consoles can't handle unicode, heh...who'da
|
||||
# thunk. We have to repr() this, as such.
|
||||
print repr(msg)
|
||||
except Exception as err:
|
||||
print "(Couldn't print processed message: {!s}").format(err)
|
||||
# karxi: We have a list...but I'm not sure if we ever get anything else, so
|
||||
# best to play it safe. I may remove this during later refactoring.
|
||||
if isinstance(msg, list):
|
||||
|
|
Loading…
Reference in a new issue