1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-05 21:10:57 +00:00

fix(trezorlib): make style-checker happy

[no changelog]
This commit is contained in:
M1nd3r 2024-11-28 17:58:08 +01:00
parent 6f7613c42c
commit e3fcd806bc
2 changed files with 3 additions and 2 deletions

View File

@ -146,7 +146,7 @@ class TrezorConnection:
client = self.get_client()
if must_resume and self.session_id is None:
click.echo("Failed to resume session - no session id provided")
return None
raise RuntimeError("Failed to resume session - no session id provided")
# Try resume session from id
if self.session_id is not None:
@ -162,7 +162,7 @@ class TrezorConnection:
if must_resume:
if session.id != self.session_id or session.id is None:
click.echo("Failed to resume session")
return None
RuntimeError("Failed to resume session - no session id provided")
return session
features = client.protocol.get_features()

View File

@ -1,4 +1,5 @@
from __future__ import annotations
import logging
import struct
import typing as t