Another small parser fix.

This commit is contained in:
karxi 2016-11-29 05:31:41 -05:00
parent 7e521c0019
commit b09870bb03

View file

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