Check if Cryptodome is installed

This commit is contained in:
Bohdan Horbeshko 2022-11-01 02:36:22 +02:00
parent 1d1873661e
commit d93a1a05cf

View file

@ -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