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:50:08 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-06-28 23:50:08 +0300
commitbd2a2c69e1beb1b55b383cd91f9f65d8de12f001 (patch)
tree80665c5d03bbf48d300ce9da40262fffeeddb66a /omemo/ui.py
parentfb9d6860fa9126fefa4ea1b129e32f0a1e6e659a (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
Diffstat (limited to 'omemo/ui.py')
-rw-r--r--omemo/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/omemo/ui.py b/omemo/ui.py
index 99c2db5..8755583 100644
--- a/omemo/ui.py
+++ b/omemo/ui.py
@@ -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