Browse Source

[10.0][FIX] mail_sendgrid_mass_mailing: Bad import (#288)

pull/256/head
Isaac Gallart 6 years ago
committed by Pedro M. Baeza
parent
commit
e638424eeb
  1. 1
      mail_sendgrid/README.rst
  2. 2
      mail_sendgrid/__manifest__.py
  3. 2
      mail_sendgrid/models/mail_mail.py
  4. 2
      mail_sendgrid/models/sendgrid_template.py
  5. 1
      mail_sendgrid_mass_mailing/README.rst
  6. 2
      mail_sendgrid_mass_mailing/__manifest__.py
  7. 5
      mail_sendgrid_mass_mailing/models/mail_mail.py

1
mail_sendgrid/README.rst

@ -103,6 +103,7 @@ Contributors
* Emanuel Cino <ecino@compassion.ch>
* Roman Zoller <rzcomp@gmail.com>
* Isaac Gallart <igallart@puntsistemes.es>
Maintainer
----------

2
mail_sendgrid/__manifest__.py

@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'SendGrid',
'version': '10.0.1.0.1',
'version': '10.0.1.0.2',
'category': 'Social Network',
'author': 'Compassion CH, Odoo Community Association (OCA)',
'license': 'AGPL-3',

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.error("ImportError raised while loading module.")
_logger.warning("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.error("ImportError raised while loading module.")
_logger.warning("ImportError raised while loading module.")
_logger.debug("ImportError details:", exc_info=True)

1
mail_sendgrid_mass_mailing/README.rst

@ -63,6 +63,7 @@ Contributors
------------
* Emanuel Cino <ecino@compassion.ch>
* Isaac Gallart <igallart@puntsistemes.es>
Do not contact contributors directly about support or help with technical issues.

2
mail_sendgrid_mass_mailing/__manifest__.py

@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Mass Mailing with SendGrid',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'category': 'Social Network',
'author': 'Compassion CH, Odoo Community Association (OCA)',
'license': 'AGPL-3',

5
mail_sendgrid_mass_mailing/models/mail_mail.py

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

Loading…
Cancel
Save