mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
chore(python): include the model names in Unsupported model error
[no changelog]
This commit is contained in:
parent
605692e5ce
commit
0e6b3299af
@ -278,7 +278,10 @@ class TrezorClient(Generic[UI]):
|
|||||||
if model is None:
|
if model is None:
|
||||||
model = models.by_name(features.model or "1")
|
model = models.by_name(features.model or "1")
|
||||||
if model is None:
|
if model is None:
|
||||||
raise RuntimeError("Unsupported Trezor model")
|
raise RuntimeError(
|
||||||
|
"Unsupported Trezor model"
|
||||||
|
f" (internal_model: {features.internal_model}, model: {features.model})"
|
||||||
|
)
|
||||||
self.model = model
|
self.model = model
|
||||||
|
|
||||||
if features.vendor not in self.model.vendors:
|
if features.vendor not in self.model.vendors:
|
||||||
|
Loading…
Reference in New Issue
Block a user