1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 20:08:12 +00:00

chore(python): include the model names in Unsupported model error

[no changelog]
This commit is contained in:
grdddj 2024-04-02 13:43:38 +02:00 committed by Jiří Musil
parent 605692e5ce
commit 0e6b3299af

View File

@ -278,7 +278,10 @@ class TrezorClient(Generic[UI]):
if model is None:
model = models.by_name(features.model or "1")
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
if features.vendor not in self.model.vendors: