mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
core/log: be less noisy with ui.Cancelled exceptions
This commit is contained in:
parent
7789a29d50
commit
29153f0e51
@ -62,6 +62,8 @@ def exception(name: str, exc: BaseException) -> None:
|
|||||||
# we are using `__class__.__name__` to avoid importing ui module
|
# we are using `__class__.__name__` to avoid importing ui module
|
||||||
if exc.__class__.__name__ == "Result":
|
if exc.__class__.__name__ == "Result":
|
||||||
_log(name, DEBUG, "ui.Result: %s", exc.value)
|
_log(name, DEBUG, "ui.Result: %s", exc.value)
|
||||||
|
elif exc.__class__.__name__ == "Cancelled":
|
||||||
|
_log(name, DEBUG, "ui.Cancelled")
|
||||||
else:
|
else:
|
||||||
_log(name, ERROR, "exception:")
|
_log(name, ERROR, "exception:")
|
||||||
sys.print_exception(exc)
|
sys.print_exception(exc)
|
||||||
|
Loading…
Reference in New Issue
Block a user