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

pull/971/head
matejcik 4 years ago committed by matejcik
parent 7ff1251ee1
commit a4f47ddd21

@ -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):

Loading…
Cancel
Save