File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -657,9 +657,11 @@ def register_converter(
657657 describe_task (converter_spec .task ),
658658 )
659659 return # actually the same task but just imported twice for some reason
660+ prev_unclassified = prev .unclassified # type: ignore[attr-defined]
661+ unclassified = cls .unclassified # type: ignore[attr-defined]
660662 raise FormatDefinitionError (
661- f"Cannot register converter from { prev . unclassified } "
662- f"to { cls . unclassified } with non-wildcard classifiers " # type: ignore[attr-defined]
663+ f"Cannot register converter from { prev_unclassified } "
664+ f"to { unclassified } with non-wildcard classifiers "
663665 f"{ list (prev .non_wildcard_classifiers ())} , { describe_task (converter_spec .task )} , "
664666 f"because there is already one registered, { describe_task (prev_spec .task )} "
665667 )
You can’t perform that action at this time.
0 commit comments