X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=electrum;h=6108b6f99fddcd8a8c1dd18e41e96ed8e4bd9fbd;hb=dceb4b04eaa19606634e720f9531f13516d9e84c;hp=f82dd374027985cc0b03ce0653802c2d2adc1442;hpb=6143625f41b7926e5195326453680418e8a75651;p=electrum-nvc.git diff --git a/electrum b/electrum index f82dd37..6108b6f 100755 --- a/electrum +++ b/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