Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-06-28 23:45:37 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-06-28 23:45:37 +0300
commit4a8a9cebba964b30ae7422a675dec2981e191d98 (patch)
tree981767ab8a8b6149736c838052b8694a6d4aa59e
parent3d0c007b5d3a5e13f0e24a07f5eb1f1297bfd74a (diff)
[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
-rw-r--r--omemo/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/omemo/ui.py b/omemo/ui.py
index 0d4bc8d..fd81339 100644
--- a/omemo/ui.py
+++ b/omemo/ui.py
@@ -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