From da0598be23a9815266fea5dcebcd096b27f45a5a Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Fri, 12 Jan 2024 15:24:29 +0100 Subject: [PATCH] fix notification within quarantine --- pyquarantine/storage.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyquarantine/storage.py b/pyquarantine/storage.py index 04d8f23..cebff01 100644 --- a/pyquarantine/storage.py +++ b/pyquarantine/storage.py @@ -414,12 +414,12 @@ class Quarantine: self.smtp_port = cfg["options"]["smtp_port"] self._notification = None - if "notify" in cfg["options"]: - name = cfg["options"]["notify"]["name"] - cfg["options"]["notify"]["name"] = f"{cfg['name']}: {name}" - cfg["options"]["notify"]["loglevel"] = cfg["loglevel"] + if "notification" in cfg["options"]: + #name = cfg["options"]["notification"]["name"] + #cfg["options"]["notify"]["name"] = f"{cfg['name']}: {name}" + #cfg["options"]["notify"]["loglevel"] = cfg["loglevel"] self._notification = Notify( - cfg["options"]["notify"], local_addrs, debug) + cfg, local_addrs, debug) self._allowlist = None if "allowlist" in cfg["options"]: