From 89e7005f70a7feda03f15cbe39bf866a6f5bd059 Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 1 Aug 2017 00:55:11 +0200 Subject: Use converted config values. --- src/mailman_pgp/model/list.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mailman_pgp/model/list.py') diff --git a/src/mailman_pgp/model/list.py b/src/mailman_pgp/model/list.py index 946af34..d80f4a7 100644 --- a/src/mailman_pgp/model/list.py +++ b/src/mailman_pgp/model/list.py @@ -16,7 +16,6 @@ # this program. If not, see . """Model for PGP enabled mailing lists.""" -from lazr.config import as_boolean from mailman.database.types import Enum, SAUnicode from mailman.interfaces.action import Action from mailman.interfaces.listmanager import (IListManager, ListDeletingEvent) @@ -145,7 +144,7 @@ class PGPMailingList(Base): @classhandler.handler(ListDeletingEvent) def on_delete(event): - shred = as_boolean(config.get('keypairs', 'shred')) + shred = config.get_value('keypairs', 'shred') pgp_list = PGPMailingList.for_list(event.mailing_list) if pgp_list: with transaction() as session: -- cgit v1.2.3-70-g09d2