未验证 提交 d0c419c0 编写于 作者: R Roman Donchenko 提交者: GitHub

cvat-sdk/gen/postprocess.py: don't suppress exceptions from `process_file` (#5740)

Suppressing the exception means that the script returns a success exit
code (preventing errors from being noticed) and that the stacktrace is
omitted from the output (preventing errors from being easily analyzed).
上级 76f7156d
......@@ -107,7 +107,7 @@ class Replacer:
try:
self.process_file(filename)
except Exception as e:
print(f"Failed to process file '{osp.basename(filename)}': {e}")
raise RuntimeError(f"Failed to process file {filename!r}") from e
def parse_schema(path):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册