"ValueError: Unknown status message: 'FAILURE'" on wrong passphrase in Windows

Issue #53 resolved
Skorov
created an issue

The following error occurs in Windows when an incorrect passphrase is given during encryption.

Exception in thread Thread-119:
Traceback (most recent call last):
  File "C:\Users\a\AppData\Local\Programs\Python\Python35-32\lib\threading.py", line 914, in _bootstrap_inner
    self.run()
  File "C:\Users\a\AppData\Local\Programs\Python\Python35-32\lib\threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\a\AppData\Local\Programs\Python\Python35-32\lib\site-packages\gnupg.py", line 813, in _read_response
    result.handle_status(keyword, value)
  File "C:\Users\a\AppData\Local\Programs\Python\Python35-32\lib\site-packages\gnupg.py", line 575, in handle_status
    Verify.handle_status(self, key, value)
  File "C:\Users\a\AppData\Local\Programs\Python\Python35-32\lib\site-packages\gnupg.py", line 308, in handle_status
    raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: 'FAILURE'

Comments (3)

  1. Log in to comment