1
0

more json formatting

This commit is contained in:
thomasv
2013-02-27 10:24:53 +01:00
parent e4dc3f3752
commit f4ac478369
2 changed files with 17 additions and 15 deletions

View File

@@ -486,10 +486,12 @@ if __name__ == '__main__':
else:
cmd_runner = Commands(wallet, interface)
func = eval('cmd_runner.' + cmd)
if password:
cmd_runner.password = password
cmd_runner.password = password
result = func(*args[1:])
util.print_json(result)
if type(result) == str:
util.print_msg(result)
else:
util.print_json(result)