hnadle MISSING_PASSPHRASE message from gnupg when signing

This commit is contained in:
Yann Leboulanger 2013-03-14 12:45:53 +01:00
parent 6cb91601c8
commit 3c8e8c9371
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ class Sign(object):
def handle_status(self, key, value): def handle_status(self, key, value):
if key in ("USERID_HINT", "NEED_PASSPHRASE", "BAD_PASSPHRASE", if key in ("USERID_HINT", "NEED_PASSPHRASE", "BAD_PASSPHRASE",
"GOOD_PASSPHRASE", "BEGIN_SIGNING", "CARDCTRL"): "GOOD_PASSPHRASE", "BEGIN_SIGNING", "CARDCTRL", "MISSING_PASSPHRASE"):
pass pass
elif key in ("KEYEXPIRED", "SIGEXPIRED"): elif key in ("KEYEXPIRED", "SIGEXPIRED"):
self.status = 'key expired' self.status = 'key expired'