[openpgp] Catch more initialization exceptions

Fixes #593
This commit is contained in:
wurstsalat
2023-10-31 13:03:19 +01:00
parent 7675a98f4a
commit 102f582bf4

View File

@@ -35,7 +35,7 @@ from gajim.plugins.plugins_i18n import _
from openpgp.modules.util import ENCRYPTION_NAME from openpgp.modules.util import ENCRYPTION_NAME
try: try:
from openpgp.modules import openpgp from openpgp.modules import openpgp
except ImportError as e: except (ImportError, OSError) as e:
ERROR_MSG = str(e) ERROR_MSG = str(e)
else: else:
ERROR_MSG = None ERROR_MSG = None