fix an other ordinal not in range exception
@@ -156,7 +156,7 @@ def main_wrapper(module, args):
if six.PY3:
message = str(e)
else:
- message = str(e).decode("utf-8", errors="ignore")
+ message = e.message
if message.endswith("\n"):
message = message[:-1]
ui.error(e.__class__.__name__, message)
