From 89f4bcbe0be2f25ca31151d0fef6fef86693f922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 5 Feb 2022 18:55:28 +0100 Subject: [PATCH] catch possible error --- PyTeX/build/pytex_file/pytex_file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PyTeX/build/pytex_file/pytex_file.py b/PyTeX/build/pytex_file/pytex_file.py index 110b848..2eabb7f 100644 --- a/PyTeX/build/pytex_file/pytex_file.py +++ b/PyTeX/build/pytex_file/pytex_file.py @@ -32,7 +32,10 @@ class PyTeXSourceFile: return files def format(self) -> Optional[List[Tuple[RelativePath, Dict]]]: - configs = self._formatter.format(GlobalPyTeXConfig.target_root()) + try: + configs = self._formatter.format(GlobalPyTeXConfig.target_root()) + except Exception as e: + raise e # TODO configs = [ (self._relative_path.with_name(filename), config) for [filename, config] in configs