File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/gnupg/_parsers.py", line 1351, in _handle_status
raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: 'KEY_CONSIDERED'
It seems like _handle_status isn't handling the case of of KEY_CONSIDERED.
def _handle_status(self, key, value):
"""Parse a status code from the attached GnuPG process.
:raises ValueError: if the status message is unknown.
"""
if key in ("EXPORTED"):
self.fingerprints.append(value)
elif key == "EXPORT_RES":
export_res = value.split()
for x in self.counts.keys():
self.counts[x] += int(export_res.pop(0))
else:
raise ValueError("Unknown status message: %r" % key)
As a quick fix, I was going to add a case for this, but not sure what the logic should be if it was KEY_CONSIDERED.
When trying to export private key:
gpg.export_keys(key, True)
I get the following:
It seems like _handle_status isn't handling the case of of KEY_CONSIDERED.
As a quick fix, I was going to add a case for this, but not sure what the logic should be if it was KEY_CONSIDERED.
Thanks