1
0

fix raise UserCacnelled calls (#6304)

This commit is contained in:
zebra-lucky
2020-07-01 18:37:31 +03:00
committed by GitHub
parent 528c8c674c
commit 949b247b19
2 changed files with 3 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ class TrezorClientBase(HardwareClientBase, Logger):
self.end_flow()
if e is not None:
if isinstance(e, Cancelled):
raise UserCancelled from e
raise UserCancelled() from e
elif isinstance(e, TrezorFailure):
raise RuntimeError(str(e)) from e
elif isinstance(e, OutdatedFirmwareError):