[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:
@@ -34,9 +34,9 @@ PILLOW = False
|
|||||||
try:
|
try:
|
||||||
import qrcode
|
import qrcode
|
||||||
PILLOW = True
|
PILLOW = True
|
||||||
except Exception as e:
|
except ImportError as error:
|
||||||
log.exception('Error:')
|
log.debug(error)
|
||||||
log.error('python-qrcode or dependencies of it, are not available')
|
log.error('python-qrcode or dependencies of it are not available')
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import configpaths
|
from common import configpaths
|
||||||
|
|||||||
Reference in New Issue
Block a user