Browse Source

[FIX] report_py3o: Import new dependencies in try...except

pull/347/head
Omar 7 years ago
committed by Laurent Mignon (ACSONE)
parent
commit
f66bbd6275
  1. 2
      report_py3o/models/py3o_report.py

2
report_py3o/models/py3o_report.py

@ -9,7 +9,6 @@ import json
import logging import logging
import os import os
from contextlib import closing from contextlib import closing
from genshi.core import Markup
import pkg_resources import pkg_resources
import requests import requests
@ -28,6 +27,7 @@ try:
from py3o.template.helpers import Py3oConvertor from py3o.template.helpers import Py3oConvertor
from py3o.template import Template from py3o.template import Template
from py3o import formats from py3o import formats
from genshi.core import Markup
except ImportError: except ImportError:
logger.debug('Cannot import py3o.template') logger.debug('Cannot import py3o.template')
try: try:

Loading…
Cancel
Save