fix for not Results-API compliant frontends
This commit is contained in:
parent
92a2ebc417
commit
eb9118133b
1 changed files with 4 additions and 1 deletions
|
|
@ -152,7 +152,10 @@ class ConsoleApplication(BaseApplication):
|
|||
elif command_result is None:
|
||||
return 0
|
||||
else:
|
||||
raise Exception('command_result type not expected: %s' % type(command_result))
|
||||
try:
|
||||
print unicode(command_result)
|
||||
except ValueError:
|
||||
raise Exception('command_result type not expected: %s' % type(command_result))
|
||||
|
||||
_commands = []
|
||||
def register_command(f, doc_string, register_to=_commands):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue