1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +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)