fix(execute_check): Handle ModuleNotFoundError (#3812)

This commit is contained in:
Pepe Fagoaga
2024-04-18 12:36:15 +02:00
committed by GitHub
parent e6d7965453
commit a138d2964e
+5
View File
@@ -735,6 +735,11 @@ def execute(
)
except Exception:
sys.exit(1)
except ModuleNotFoundError:
logger.error(
f"Check '{check_name}' was not found for the {global_provider.type.upper()} provider"
)
check_findings = []
except Exception as error:
logger.error(
f"{error.__class__.__name__}[{error.__traceback__.tb_lineno}]: {error}"