diff options
author | wurstsalat <mailtrash@posteo.de> | 2023-10-31 15:03:19 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2023-10-31 15:05:49 +0300 |
commit | 102f582bf4c0af276849a1c55e92c05de6fce90c (patch) | |
tree | 3dd0cc90d97001bfae42ce29ac18fadf4e016367 | |
parent | 7675a98f4a88bad0619450f03c01202b7ac18b6d (diff) |
[openpgp] Catch more initialization exceptions
Fixes #593
-rw-r--r-- | openpgp/pgpplugin.py | 2 |
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 |