[omemo] Better handle exception

- Print only warning instead of error, as the module is only optional
- Log the error to the debug log, so users dont think we didnt catch the exception
This commit is contained in:
Philipp Hörist
2017-06-28 22:50:08 +02:00
parent fb9d6860fa
commit bd2a2c69e1

View File

@@ -34,9 +34,9 @@ PILLOW = False
try:
import qrcode
PILLOW = True
except Exception as e:
log.exception('Error:')
log.error('python-qrcode or dependencies of it, are not available')
except ImportError as error:
log.debug(error)
log.error('python-qrcode or dependencies of it are not available')
from common import gajim
from common import configpaths