We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48f2a31 + 7bdf47d commit a533d1dCopy full SHA for a533d1d
bittensor_cli/src/bittensor/utils.py
@@ -575,7 +575,9 @@ def format_error_message(error_message: Union[dict, Exception]) -> str:
575
err_type = error_message.get("type", err_type)
576
err_name = error_message.get("name", err_name)
577
err_docs = error_message.get("docs", [err_description])
578
- err_description = " ".join(err_docs)
+ err_description = (
579
+ " ".join(err_docs) if not isinstance(err_docs, str) else err_docs
580
+ )
581
err_description += (
582
f" | Please consult {BT_DOCS_LINK}/errors/subtensor#{err_name.lower()}"
583
)
0 commit comments