Skip to content

Commit

Permalink
prechecker updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop committed Nov 19, 2023
1 parent 4bd0b71 commit 2cd0b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion precheck_script/check_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def check_static_otehr(env, page: dict):

for path, name in page.items():
try:
render_template(env, path.format(lang=i))
render_template(env, path)
except Exception:
failed_count += 1

Expand Down
3 changes: 3 additions & 0 deletions prechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@
check_static_otehr(env, OTHER_STATIC_PAGE)
except AssertionError:
encounter_exception = True

if encounter_exception:
raise AssertionError

0 comments on commit 2cd0b5f

Please sign in to comment.