From 88895c327a0793e34493e8554e8ac18d55b4ef98 Mon Sep 17 00:00:00 2001 From: "Thomas G. Close" Date: Tue, 18 Aug 2026 10:19:40 +1000 Subject: [PATCH] reverted exception type in FileSet.sample to NotImplementedError --- fileformats/core/fileset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileformats/core/fileset.py b/fileformats/core/fileset.py index 9f42e428..b15e0e07 100644 --- a/fileformats/core/fileset.py +++ b/fileformats/core/fileset.py @@ -1167,7 +1167,7 @@ def sample( mime_like = cls.mime_like except FormatDefinitionError: mime_like = cls.__module__ + "." + cls.__name__ - raise FormatMismatchError( + raise NotImplementedError( f"File paths generated by override of FileSet.generate_sample_data() " f"({fspaths}) do not match '{mime_like}' file type. A more specific " f"implementation is required. Reason:\n\n{e}"