Commit 4a8a9ceb authored by Philipp Hörist's avatar Philipp Hörist

[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
parent 3d0c007b
......@@ -43,9 +43,9 @@ try:
else:
import qrcodewin.main as qrcode
PILLOW = True
except Exception as e:
log.exception('Error:')
log.error('pyton-qrcode or dependencies of it, are not available')
except ImportError as error:
log.debug(error)
log.warning('python-qrcode or dependencies of it are not available')
# pylint: enable=import-error
UNDECIDED = 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment