Browse Source

Only catch ImportError in `*_xslx` modules.

pull/257/head
Jairo Llopis 8 years ago
committed by GitHub
parent
commit
82fa8d4d20
  1. 11
      account_financial_report_qweb/report/__init__.py

11
account_financial_report_qweb/report/__init__.py

@ -6,17 +6,18 @@
import logging
_logger = logging.getLogger(__name__)
from . import aged_partner_balance
from . import general_ledger
from . import open_items
from . import trial_balance
try:
from . import abstract_report_xlsx
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
except ImportError:
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)
ReportXlsx = object
Loading…
Cancel
Save