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, \ from sendgrid.helpers.mail import Email, Attachment, CustomArg, Content, \
Personalization, Substitution, Mail, Header Personalization, Substitution, Mail, Header
except ImportError: except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True) _logger.debug("ImportError details:", exc_info=True)

2
mail_sendgrid/models/sendgrid_template.py

@ -15,7 +15,7 @@ _logger = logging.getLogger(__name__)
try: try:
import sendgrid import sendgrid
except ImportError: except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True) _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: try:
from sendgrid.helpers.mail import TrackingSettings, SubscriptionTracking from sendgrid.helpers.mail import TrackingSettings, SubscriptionTracking
except ImportError: except ImportError:
_logger.warning("ImportError raised while loading module.")
_logger.info("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True) _logger.debug("ImportError details:", exc_info=True)

Loading…
Cancel
Save