Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: hoangtungdinh <[email protected]>
  • Loading branch information
hoangtungdinh committed Sep 16, 2024
1 parent 2629aba commit 4481b7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qc_openscenario/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,18 @@ def execute_checker(
checker_id=checker.CHECKER_ID,
status=StatusType.COMPLETED,
)
except Exception:
except Exception as e:
# If any exception occurs during the check, set the status as ERROR
checker_data.result.set_checker_status(
checker_bundle_name=constants.BUNDLE_NAME,
checker_id=checker.CHECKER_ID,
status=StatusType.ERROR,
)

checker_data.result.add_checker_summary(
constants.BUNDLE_NAME, checker.CHECKER_ID, str(e)
)


def run_checks(config: Configuration, result: Result) -> None:
checker_data = models.CheckerData(
Expand Down

0 comments on commit 4481b7d

Please sign in to comment.