[openpgp] Fix backend init

This commit is contained in:
Philipp Hörist
2024-06-16 14:19:59 +02:00
parent 743f5b9b7b
commit 4eddd45b77

View File

@@ -15,6 +15,7 @@
# along with OpenPGP Gajim Plugin. If not, see <http://www.gnu.org/licenses/>. # along with OpenPGP Gajim Plugin. If not, see <http://www.gnu.org/licenses/>.
import logging import logging
from pathlib import Path
import gnupg import gnupg
from nbxmpp.protocol import JID from nbxmpp.protocol import JID
@@ -77,10 +78,10 @@ class KeyringItem:
class PythonGnuPG(gnupg.GPG): class PythonGnuPG(gnupg.GPG):
def __init__(self, jid, gnupghome): def __init__(self, jid: str, gnupghome: Path) -> None:
gnupg.GPG.__init__(self, gpgbinary='gpg', gnupghome=str(gnupghome)) gnupg.GPG.__init__(self, gpgbinary='gpg', gnupghome=str(gnupghome))
self._jid = jid.bare self._jid = jid
self._own_fingerprint = None self._own_fingerprint = None
@staticmethod @staticmethod