[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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user