From 04a808b5c044178f879a0b8b208daa41677665a7 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 27 Nov 2020 10:54:29 +0100 Subject: [PATCH] check if fintech lib is installed --- account_ebics/__init__.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/account_ebics/__init__.py b/account_ebics/__init__.py index aee8895..168985a 100644 --- a/account_ebics/__init__.py +++ b/account_ebics/__init__.py @@ -1,2 +1,9 @@ -from . import models -from . import wizards +import logging + +_logger = logging.getLogger(__name__) + +try: + from . import models + from . import wizards +except Exception: + _logger.warning("Import Error, check if fintech lib has been installed")