isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
426 stars 171 forks source link

ValueError: Unknown status message: 'ERROR' #265

Open squarepegsys opened 4 years ago

squarepegsys commented 4 years ago

PR #264 addresses an issue I found while creating keys and dumping them into a text file.

the error I got was:

Traceback (most recent call last):
    File "/Users/michael.hostetler/.pyenv/versions/3.7.4/lib/python3.7/threading.py", line 926, in _bootstrap_inner
  self.run()
  File "/Users/michael.hostetler/.pyenv/versions/3.7.4/lib/python3.7/threading.py", line 870, in run
  self._target(*self._args, **self._kwargs)
   File "/Users/michael.hostetler/.pyenv/versions/3.7.4/envs/file-ops-3.7.4/lib/python3.7/site-packages/pretty_bad_protocol/_meta.py", line 670, in _read_response
  result._handle_status(keyword, value)
  File "/Users/michael.hostetler/.pyenv/versions/3.7.4/envs/file-ops-3.7.4/lib/python3.7/site-packages/pretty_bad_protocol/_parsers.py", line 995, in _handle_status
  raise ValueError("Unknown status message: %r" % key)
 ValueError: Unknown status message: 'ERROR'

the PR has a fix and test cases for it.