diff --git a/radicale/hook/email/__init__.py b/radicale/hook/email/__init__.py index cbf1523b..62bf3195 100644 --- a/radicale/hook/email/__init__.py +++ b/radicale/hook/email/__init__.py @@ -946,7 +946,7 @@ class Hook(BaseHook): :type notification_item: HookNotificationItem :return: None """ - if self.dryrun: + if self.email_config.dryrun: logger.warning("Hook 'email': DRY-RUN received notification_item: %r", vars(notification_item)) else: logger.debug("Received notification_item: %r", vars(notification_item))