Fix email notification enable check

This commit is contained in:
deajan 2025-07-03 09:56:49 +02:00
parent 6c8f4f98a6
commit fc8e2f1409

View file

@ -244,7 +244,9 @@ def send_metrics_mail(
repo_name = repo_config.g("name")
try:
if not repo_config.g("global_email") or repo_config.g("global_email.enable"):
if not repo_config.g("global_email") or not repo_config.g(
"global_email.enable"
):
logger.debug(
"Email not enabled in configuration. Not sending notifications."
)