catch possible error
This commit is contained in:
parent
b38c01cb0c
commit
89f4bcbe0b
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ class PyTeXSourceFile:
|
||||||
return files
|
return files
|
||||||
|
|
||||||
def format(self) -> Optional[List[Tuple[RelativePath, Dict]]]:
|
def format(self) -> Optional[List[Tuple[RelativePath, Dict]]]:
|
||||||
|
try:
|
||||||
configs = self._formatter.format(GlobalPyTeXConfig.target_root())
|
configs = self._formatter.format(GlobalPyTeXConfig.target_root())
|
||||||
|
except Exception as e:
|
||||||
|
raise e # TODO
|
||||||
configs = [
|
configs = [
|
||||||
(self._relative_path.with_name(filename), config)
|
(self._relative_path.with_name(filename), config)
|
||||||
for [filename, config] in configs
|
for [filename, config] in configs
|
||||||
|
|
Loading…
Reference in a new issue