diff --git a/src/callbacks.py b/src/callbacks.py index 6743b1896..9d1038bbb 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -101,7 +101,8 @@ def canonicalName(command): Currently, this makes everything lowercase and removes all dashes and underscores. """ - assert not isinstance(command, unicode) + if isinstance(command, unicode): + command = command.encode('utf-8') special = '\t -_' reAppend = '' while command and command[-1] in special: