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

core/lockscreen: ignore exception when user taps "unlock" and then cancels

This commit is contained in:
matejcik 2020-05-21 12:53:11 +02:00 committed by matejcik
parent 7ff1251ee1
commit a4f47ddd21

View File

@ -1,4 +1,4 @@
from trezor import loop, res, ui
from trezor import loop, res, ui, wire
from . import HomescreenBase
@ -10,7 +10,10 @@ async def lockscreen() -> None:
if can_lock_device():
await Lockscreen()
await unlock_device()
try:
await unlock_device()
except wire.PinCancelled:
pass
class Lockscreen(HomescreenBase):