diff --git a/account_financial_report_qweb/report/__init__.py b/account_financial_report_qweb/report/__init__.py index 111bf4f4..fb0e633c 100644 --- a/account_financial_report_qweb/report/__init__.py +++ b/account_financial_report_qweb/report/__init__.py @@ -4,12 +4,20 @@ # © 2016 Julien Coux (Camptocamp) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).- -from . import abstract_report_xlsx +import logging +_logger = logging.getLogger(__name__) + from . import aged_partner_balance -from . import aged_partner_balance_xlsx from . import general_ledger -from . import general_ledger_xlsx from . import open_items -from . import open_items_xlsx from . import trial_balance -from . import trial_balance_xlsx + +try: + from . import abstract_report_xlsx + from . import aged_partner_balance_xlsx + from . import general_ledger_xlsx + from . import open_items_xlsx + from . import trial_balance_xlsx +except ImportError: + _logger.info("ImportError raised while loading module.") + _logger.debug("ImportError details:", exc_info=True)