Browse Source

[FIX] mail_sendgrid*. Use info loglevel for import error.

Using _logger.warning for ImportError exception results in runbot/travis failures.
pull/312/head
Ronald Portier 6 years ago
parent
commit
4aae076ec2
  1. 2
      mail_sendgrid/models/mail_mail.py
  2. 2
      mail_sendgrid/models/sendgrid_template.py
  3. 2
      mail_sendgrid_mass_mailing/models/mail_mail.py

2
mail_sendgrid/models/mail_mail.py

@ -19,7 +19,7 @@ try:
from sendgrid.helpers.mail import Email, Attachment, CustomArg, Content, \
Personalization, Substitution, Mail, Header
except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)

2
mail_sendgrid/models/sendgrid_template.py

@ -15,7 +15,7 @@ _logger = logging.getLogger(__name__)
try:
import sendgrid
except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)

2
mail_sendgrid_mass_mailing/models/mail_mail.py

@ -9,7 +9,7 @@ _logger = logging.getLogger(__name__)
try:
from sendgrid.helpers.mail import TrackingSettings, SubscriptionTracking
except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)

Loading…
Cancel
Save