From d93a1a05cff6fd5902527d6ab3134ea7bece8da3 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Tue, 1 Nov 2022 02:36:22 +0200 Subject: [PATCH] Check if Cryptodome is installed --- plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin.py b/plugin.py index 111204a..5b9cced 100644 --- a/plugin.py +++ b/plugin.py @@ -25,6 +25,11 @@ from gajim.common import app log = logging.getLogger('gajim.p.otr') +try: from Cryptodome import * +except ImportError as e: + log.error(e) + ERROR = 'Cryptodome is missing' + if not ERROR: try: from . import module