1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +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 from . import HomescreenBase
@ -10,7 +10,10 @@ async def lockscreen() -> None:
if can_lock_device(): if can_lock_device():
await Lockscreen() await Lockscreen()
try:
await unlock_device() await unlock_device()
except wire.PinCancelled:
pass
class Lockscreen(HomescreenBase): class Lockscreen(HomescreenBase):