1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

apps.common.request_pin: fix client cancel

This commit is contained in:
Jan Pochyla 2016-12-15 12:34:18 +01:00
parent 2a58ca986f
commit c03924c05f

View File

@ -57,7 +57,7 @@ async def request_pin_on_client(session_id: int, code: int=None) -> str:
digits = matrix.digits
matrix = None
if ack.WIRE_TYPE == Cancel:
if ack.MESSAGE_WIRE_TYPE == Cancel:
raise wire.FailureError(PinCancelled, 'PIN cancelled')
return _decode_pin(ack.pin, digits)