1
0

move is_valid from wallet class to bitcoin.py

This commit is contained in:
thomasv
2013-03-01 14:27:56 +01:00
parent f3cc234c87
commit f72c8ee5d2
9 changed files with 49 additions and 32 deletions

View File

@@ -444,7 +444,12 @@ if __name__ == '__main__':
cmd_runner = Commands(wallet, interface)
func = eval('cmd_runner.' + cmd)
cmd_runner.password = password
result = func(*args[1:])
try:
result = func(*args[1:])
except BaseException, e:
print_msg("Error: " + str(e))
sys.exit(1)
if type(result) == str:
util.print_msg(result)
else: