mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-10-10 20:27:42 +00:00
pep8
This commit is contained in:
@@ -2,7 +2,6 @@ import logging
|
||||
|
||||
from restic_compose_backup.alerts.smtp import SMTPAlert
|
||||
from restic_compose_backup.alerts.discord import DiscordWebhookAlert
|
||||
from restic_compose_backup.config import Config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -37,7 +36,7 @@ def configured_alert_types():
|
||||
|
||||
for cls in BACKENDS:
|
||||
instance = cls.create_from_env()
|
||||
logger.debug("Alert backend '%s' configured: %s", cls.name, instance != None)
|
||||
logger.debug("Alert backend '%s' configured: %s", cls.name, instance is not None)
|
||||
if instance:
|
||||
entires.append(instance)
|
||||
|
||||
|
Reference in New Issue
Block a user