Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2023-10-31 15:03:19 +0300
committerwurstsalat <mailtrash@posteo.de>2023-10-31 15:05:49 +0300
commit102f582bf4c0af276849a1c55e92c05de6fce90c (patch)
tree3dd0cc90d97001bfae42ce29ac18fadf4e016367
parent7675a98f4a88bad0619450f03c01202b7ac18b6d (diff)
[openpgp] Catch more initialization exceptions
Fixes #593
-rw-r--r--openpgp/pgpplugin.py2
1 files changed, 1 insertions, 1 deletions
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