mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
client: PassphraseState is not mandatory (missing on T1 in fact)
This commit is contained in:
parent
1233feb358
commit
99278f7d08
@ -127,11 +127,12 @@ class BaseClient(object):
|
||||
else:
|
||||
passphrase = self.ui.get_passphrase()
|
||||
|
||||
state_request = self.call_raw(proto.PassphraseAck(passphrase=passphrase))
|
||||
if not isinstance(state_request, proto.PassphraseStateRequest):
|
||||
raise exceptions.TrezorException("Passphrase state missing")
|
||||
self.state = state_request.state
|
||||
resp = self.call_raw(proto.PassphraseAck(passphrase=passphrase))
|
||||
if isinstance(resp, proto.PassphraseStateRequest):
|
||||
self.state = resp.state
|
||||
return self.call_raw(proto.PassphraseStateAck())
|
||||
else:
|
||||
return resp
|
||||
|
||||
def callback_ButtonRequest(self, msg):
|
||||
__tracebackhide__ = True # for pytest # pylint: disable=W0612
|
||||
|
Loading…
Reference in New Issue
Block a user