diff options
Diffstat (limited to 'src/mailman_pgp/plugin.py')
| -rw-r--r-- | src/mailman_pgp/plugin.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mailman_pgp/plugin.py b/src/mailman_pgp/plugin.py index 2a8207c..2b59236 100644 --- a/src/mailman_pgp/plugin.py +++ b/src/mailman_pgp/plugin.py @@ -52,8 +52,7 @@ class PGPMailman: @classhandler.handler(ListDeletedEvent) def on_delete(mlist): - pgp_list = PGPMailingList.query().filter_by( - list_id=mlist.list_id).first() + pgp_list = PGPMailingList.for_list(mlist) if pgp_list: with transaction() as session: # TODO shred the list key |
