Browse Source

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

Fixes #488.
pull/1548/head
Jairo Llopis 8 years ago
committed by Tom Blauwendraat
parent
commit
08652d51fe
  1. 10
      mail_environment/__init__.py
  2. 10
      server_environment/__init__.py

10
mail_environment/__init__.py

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