aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/plugin.py')
-rw-r--r--src/mailman_pgp/plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman_pgp/plugin.py b/src/mailman_pgp/plugin.py
index d3974d1..2a8207c 100644
--- a/src/mailman_pgp/plugin.py
+++ b/src/mailman_pgp/plugin.py
@@ -52,9 +52,9 @@ class PGPMailman:
@classhandler.handler(ListDeletedEvent)
def on_delete(mlist):
- encrypted_list = PGPMailingList.query().filter_by(
+ pgp_list = PGPMailingList.query().filter_by(
list_id=mlist.list_id).first()
- if encrypted_list:
+ if pgp_list:
with transaction() as session:
# TODO shred the list key
- session.delete(encrypted_list)
+ session.delete(pgp_list)