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. 8
      mail_environment/__init__.py
  2. 8
      server_environment/__init__.py

8
mail_environment/__init__.py

@ -1,2 +1,10 @@
# -*- coding: utf-8 -*-
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)

8
server_environment/__init__.py

@ -18,4 +18,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
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