Skip to content

Commit 7184d08

Browse files
committed
touched up exception handling
1 parent 37a45d2 commit 7184d08

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
@@ -125,7 +125,7 @@ def from_mime(cls, mime_string):
125125
except ValueError:
126126
raise FormatRecognitionError(
127127
f"Format '{mime_string}' is not a valid MIME-like format of <namespace>/<format>"
128-
)
128+
) from None
129129
else:
130130
namespace = namespace.replace("-", "_")
131131
# Attempt to load file type using their `iana_mime` attribute

0 commit comments

Comments
 (0)