Skip to content

Commit

Permalink
[FIX][account_financial_report_qweb] Fix ImportError.
Browse files Browse the repository at this point in the history
It was happening when `xlsxwriter` python module was not available.
  • Loading branch information
yajo committed Sep 23, 2016
1 parent 13d4310 commit 954d401
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions account_financial_report_qweb/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Contributors
* Francesco Apruzzese <[email protected]>
* Lorenzo Battistini <[email protected]>
* Julien Coux <[email protected]>
* Jairo Llopis <[email protected]>

Much of the work in this module was done at a sprint in Sorrento, Italy in
April 2016.
Expand Down
13 changes: 9 additions & 4 deletions account_financial_report_qweb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
# Author: Damien Crier
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
from . import wizard
from . import report
try:
from . import models
from . import wizard
from . import report
except ImportError:
import logging
_logger = logging.getLogger(__name__)
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)

0 comments on commit 954d401

Please sign in to comment.