I ran a .py
script and got the following:
Traceback (most recent call last):
File "decrypt_bitcoinj_seed.pyw", line 313, in <module>
wallet = load_wallet(wallet_file, get_password)
File "decrypt_bitcoinj_seed.pyw", line 126, in load_wallet
password = get_password_fn(takes_long)
File "decrypt_bitcoinj_seed.pyw", line 301, in get_password
return password.decode('ASCII') if isinstance(password, str) else password
AttributeError: 'str' object has no attribute 'decode'
What I don't get is why doesn't 'decode'
interpret 'str'
as an instance for a string of characters? Aren't decode and str compatible in trying to complete this block of code?
Is this a candidate for using except AttributeError
?