cryptoadvance / specter-diy

DIY airgapped hardware wallet that uses QR codes for communication with the host
MIT License
441 stars 73 forks source link

Bug: None value issue when entered mnemonic #37

Closed k9ert closed 4 years ago

k9ert commented 4 years ago

Sometimes, but not always, i get the below issue after i've entered my 12-word mnemonic (e.g. (11xghost machine") in the simulator and i'm clicking on "done".

You see this issue in the logs:

➜  specter-diy git:(testing) ✗ ./specter.sh sim    
Traceback (most recent call last):
  File "gui/screens.py", line 290, in cb
  File "main.py", line 346, in mnemonic_entered
AttributeError: 'NoneType' object has no attribute 'strip'

This is the code-snippet:

def mnemonic_entered(mnemonic):
    global entropy
    entropy = bip39.mnemonic_to_bytes(mnemonic.strip())
    ask_for_password()
stepansnigirev commented 4 years ago

Just saw the same problem today. It happens when you click on the keyboard but not on the button itself. Gonna fix it now...

stepansnigirev commented 4 years ago

Should be fixed with https://github.com/cryptoadvance/specter-diy/commit/a165b564f7cfd562de51a77e49acc7d61c1839fd