Skip to content
Snippets Groups Projects
Commit 4a8a9ceb authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment