Browse Source
Merge pull request #312 from NL66278/10.0-mail_sendgrid-import-error-info
[10.0][FIX] mail_sendgrid*. Use info loglevel for import error.
pull/328/head
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
mail_sendgrid/models/mail_mail.py
-
mail_sendgrid/models/sendgrid_template.py
-
mail_sendgrid_mass_mailing/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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|