Skip to content

Commit 4838889

Browse files
committed
fixed up format recognition error message
1 parent 54c3800 commit 4838889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileformats/core/datatype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def get_format(mime_name: str) -> ty.Type[DataType]:
273273
klass = classified[classifiers] # type: ignore
274274
else:
275275
raise FormatRecognitionError(
276-
f"Did not find '{class_name}' class in fileformats.{namespace} "
276+
f"Did not find '{class_name}' class in {module_path} "
277277
f"corresponding to MIME, or MIME-like, type {mime_string}"
278278
) from None
279279
if not (ty.get_origin(klass) is ty.Union or issubclass(klass, cls)):

0 commit comments

Comments
 (0)