better error messages
This commit is contained in:
9
electrum
9
electrum
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user