Commit bd2a2c69 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 fb9d6860
......@@ -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
......
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