mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-10 21:48:22 +08:00
Fix email notification enable check
This commit is contained in:
parent
6c8f4f98a6
commit
fc8e2f1409
1 changed files with 3 additions and 1 deletions
|
@ -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."
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue