[FIX] protect import if module is not present (#818)

* [FIX] Protect import for uninstalled module
This commit is contained in:
Vincent Renaville
2019-05-15 09:04:54 +02:00
committed by Guewen Baconnier
parent cab1ce8282
commit a33d9b0dcf
2 changed files with 23 additions and 5 deletions

View File

@@ -1,6 +1,13 @@
# -*- coding: utf-8 -*-
# Copyright 2014 Camptocamp SA, 2017 ACSONE
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
from . import wizard
try:
from odoo.addons.queue_job.job \
import job, Job
except (ImportError, IOError) as err:
import logging
_logger = logging.getLogger(__name__)
_logger.debug(err)
else:
from . import models
from . import wizard