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

[no changelog]
pull/3664/head
grdddj 1 month ago committed by Jiří Musil
parent 605692e5ce
commit 0e6b3299af

@ -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:

Loading…
Cancel
Save