mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 05:18:08 +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:
|
else:
|
||||||
passphrase = self.ui.get_passphrase()
|
passphrase = self.ui.get_passphrase()
|
||||||
|
|
||||||
state_request = self.call_raw(proto.PassphraseAck(passphrase=passphrase))
|
resp = self.call_raw(proto.PassphraseAck(passphrase=passphrase))
|
||||||
if not isinstance(state_request, proto.PassphraseStateRequest):
|
if isinstance(resp, proto.PassphraseStateRequest):
|
||||||
raise exceptions.TrezorException("Passphrase state missing")
|
self.state = resp.state
|
||||||
self.state = state_request.state
|
return self.call_raw(proto.PassphraseStateAck())
|
||||||
return self.call_raw(proto.PassphraseStateAck())
|
else:
|
||||||
|
return resp
|
||||||
|
|
||||||
def callback_ButtonRequest(self, msg):
|
def callback_ButtonRequest(self, msg):
|
||||||
__tracebackhide__ = True # for pytest # pylint: disable=W0612
|
__tracebackhide__ = True # for pytest # pylint: disable=W0612
|
||||||
|
Loading…
Reference in New Issue
Block a user