From bd2a2c69e1beb1b55b383cd91f9f65d8de12f001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 28 Jun 2017 22:50:08 +0200 Subject: [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 --- omemo/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'omemo/ui.py') 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 -- cgit v1.2.3