From 102f582bf4c0af276849a1c55e92c05de6fce90c Mon Sep 17 00:00:00 2001 From: wurstsalat Date: Tue, 31 Oct 2023 13:03:19 +0100 Subject: [openpgp] Catch more initialization exceptions Fixes #593 --- openpgp/pgpplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpgp/pgpplugin.py b/openpgp/pgpplugin.py index 8c63359..750ea73 100644 --- a/openpgp/pgpplugin.py +++ b/openpgp/pgpplugin.py @@ -35,7 +35,7 @@ from gajim.plugins.plugins_i18n import _ from openpgp.modules.util import ENCRYPTION_NAME try: from openpgp.modules import openpgp -except ImportError as e: +except (ImportError, OSError) as e: ERROR_MSG = str(e) else: ERROR_MSG = None -- cgit v1.2.3