Quellcode durchsuchen

- Fix dryrun property

Nate Harris vor 6 Monaten
Ursprung
Commit
9b6ba72fa0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      radicale/hook/email/__init__.py

+ 1 - 1
radicale/hook/email/__init__.py

@@ -946,7 +946,7 @@ class Hook(BaseHook):
         :type notification_item: HookNotificationItem
         :type notification_item: HookNotificationItem
         :return: None
         :return: None
         """
         """
-        if self.dryrun:
+        if self.email_config.dryrun:
             logger.warning("Hook 'email': DRY-RUN received notification_item: %r", vars(notification_item))
             logger.warning("Hook 'email': DRY-RUN received notification_item: %r", vars(notification_item))
         else:
         else:
             logger.debug("Received notification_item: %r", vars(notification_item))
             logger.debug("Received notification_item: %r", vars(notification_item))