Skip to content

Commit 69c48fe

Browse files
committed
fix: errors in some new places
1 parent 33cfc99 commit 69c48fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osa_tool/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def main():
106106
if content:
107107
va_re_gen = ValidationReportGenerator(config_manager, git_agent.metadata)
108108
va_re_gen.build_pdf("Document", content)
109-
if create_fork:
109+
if create_fork and os.path.exists(va_re_gen.output_path):
110110
git_agent.upload_report(va_re_gen.filename, va_re_gen.output_path)
111111
plan.mark_done("validate_doc")
112112
else:
@@ -120,7 +120,7 @@ def main():
120120
if content:
121121
va_re_gen = ValidationReportGenerator(config_manager, git_agent.metadata)
122122
va_re_gen.build_pdf("Paper", content)
123-
if create_fork:
123+
if create_fork and os.path.exists(va_re_gen.output_path):
124124
git_agent.upload_report(va_re_gen.filename, va_re_gen.output_path)
125125
plan.mark_done("validate_paper")
126126
else:

0 commit comments

Comments
 (0)