From 659faee60f2ebdd54e3b6576a0bd475b144d9c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Sat, 15 Jun 2024 13:52:09 +0200 Subject: [PATCH] Audit: Don't raise an error on test error --- github_app_geo_project/module/audit/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/github_app_geo_project/module/audit/utils.py b/github_app_geo_project/module/audit/utils.py index 08aec689497..8a8136f32d6 100644 --- a/github_app_geo_project/module/audit/utils.py +++ b/github_app_geo_project/module/audit/utils.py @@ -340,7 +340,7 @@ async def _snyk_test( "test-arguments", config.get("test-arguments", configuration.SNYK_TEST_ARGUMENTS_DEFAULT) ), ] - test_json_str, success = await _run_timeout( + test_json_str, _ = await _run_timeout( command, env_no_debug, int(os.environ.get("GHCI_SNYK_TIMEOUT", "300")), @@ -349,8 +349,6 @@ async def _snyk_test( "Timeout while testing the project", result, ) - if not success: - raise ValueError("Error while testing the project") if test_json_str: message = module_utils.HtmlMessage(utils.format_json_str(test_json_str))