Browse Source

[FIX][mail_environment][server_environment] Prevent ImportError.

Fixes #488.
pull/606/merge
Jairo Llopis 8 years ago
committed by Jairo Llopis
parent
commit
f8ec029b37
  1. 10
      mail_environment/__init__.py
  2. 10
      server_environment/__init__.py

10
mail_environment/__init__.py

@ -1,2 +1,10 @@
# -*- coding: utf-8 -*-
from . import env_mail
import logging
_logger = logging.getLogger(__name__)
try:
from . import env_mail
except ImportError:
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)

10
server_environment/__init__.py

@ -18,4 +18,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from .serv_config import serv_config, setboolean
import logging
_logger = logging.getLogger(__name__)
try:
from .serv_config import serv_config, setboolean
except ImportError:
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)
Loading…
Cancel
Save