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: ...@@ -43,9 +43,9 @@ try:
else: else:
import qrcodewin.main as qrcode import qrcodewin.main as qrcode
PILLOW = True PILLOW = True
except Exception as e: except ImportError as error:
log.exception('Error:') log.debug(error)
log.error('pyton-qrcode or dependencies of it, are not available') log.warning('python-qrcode or dependencies of it are not available')
# pylint: enable=import-error # pylint: enable=import-error
UNDECIDED = 2 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