1
0

better error message

This commit is contained in:
ThomasV
2015-06-15 10:52:03 +02:00
parent 5c59b017ae
commit 74d26f5bdc
2 changed files with 3 additions and 3 deletions

View File

@@ -291,7 +291,7 @@ class Abstract_Wallet(object):
return account is not None
def import_key(self, sec, password):
assert self.can_import()
assert self.can_import(), 'This wallet cannot import private keys'
try:
pubkey = public_key_from_private_key(sec)
address = public_key_to_bc_address(pubkey.decode('hex'))