In gpg.py: ValueError: Unknown status message: u'PINENTRY_LAUNCHED'
Bug description
After a recent upgrade of Pinentry, I get the following message in Gajim debug output:
Exception in thread Thread-12:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib64/python2.7/site-packages/gajim/common/gnupg.py", line 770, in _read_response
result.handle_status(keyword, value)
File "/usr/lib64/python2.7/site-packages/gajim/common/gnupg.py", line 626, in handle_status
raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: u'PINENTRY_LAUNCHED'
10.07.15 08:28:16 (E) gajim.c.ged Error while running an even handler: \<bound method Connection._nec_roster_received of \<common.connection.Connection object at 0x7f7e6558b050>>
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gajim/common/ged.py", line 93, in raise_event
if handler(*args, **kwargs):
File "/usr/lib64/python2.7/site-packages/gajim/common/connection_handlers.py", line 2073, in _nec_roster_received
self._send_first_presence)
File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 1870, in get_signed_presence
return self.get_signed_msg(msg, callback)
File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 235, in get_signed_msg
signed = self.gpg.sign(msg, keyID)
File "/usr/lib64/python2.7/site-packages/gajim/common/gpg.py", line 82, in sign
if result.status == 'key expired':
AttributeError: 'Sign' object has no attribute 'status'
Steps to reproduce
It happens only on the first start and GPG password input. I guess, it does not happen when the Pinentry already remembers the entered password. So, in order to test this, one has not to save password in Pinentry.
Software versions
OS version: Gentoo GNU/Linux
GTK version: 2.24.28
PyGTK version: 2.24.0