Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 6538609

Browse files
committed
fix the error not display when yaml file is incorrect
Signed-off-by: reid_liu <guliu@redhat.com>
1 parent 4738551 commit 6538609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instructlab/schema/taxonomy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,6 @@ def parse(self, path: str | pathlib.Path) -> Taxonomy:
429429

430430
self._schema_validate(text=text, taxonomy=taxonomy)
431431
except Exception as e:
432-
raise TaxonomyReadingException from e
432+
raise TaxonomyReadingException(f"{e}") from e
433433

434434
return taxonomy

0 commit comments

Comments
 (0)