aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman_pgp/commands/eml_key.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py
index 4f62050..0d5fa1e 100644
--- a/src/mailman_pgp/commands/eml_key.py
+++ b/src/mailman_pgp/commands/eml_key.py
@@ -36,8 +36,8 @@ from mailman_pgp.pgp.mime import MIMEWrapper
from mailman_pgp.pgp.wrapper import PGPWrapper
from mailman_pgp.utils.email import get_email
from mailman_pgp.workflows.key_change import (CHANGE_CONFIRM_REQUEST,
- KeyChangeWorkflow,
- KeyChangeModWorkflow)
+ KeyChangeModWorkflow,
+ KeyChangeWorkflow)
from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST
@@ -169,8 +169,8 @@ def _cmd_confirm(pgp_list, mlist, msg, msgdata, arguments, results):
print('Wrong token.', file=results)
return ContinueProcessing.no
- if pendable.get('type') in (KeyChangeWorkflow.pendable_class().PEND_TYPE,
- KeyChangeModWorkflow.pendable_class().PEND_TYPE):
+ if pendable.get('type') in (KeyChangeWorkflow.name,
+ KeyChangeModWorkflow.name):
expecting = CHANGE_CONFIRM_REQUEST.format(pendable.get('fingerprint'),
token)
else: