1
0

better error messages

This commit is contained in:
thomasv
2012-05-30 14:42:30 +02:00
parent 6143625f41
commit dceb4b04ea
3 changed files with 11 additions and 10 deletions

View File

@@ -215,11 +215,12 @@ if __name__ == '__main__':
if cmd == 'import':
keypair = args[1]
if wallet.import_key(keypair,password):
try:
wallet.import_key(keypair,password)
wallet.save()
print "keypair imported"
else:
print "error"
wallet.save()
except BaseException, e:
print( 'Error:' + str(e) )
if cmd=='help':
cmd2 = firstarg