sendgrid / python-http-client

Twilio SendGrid's Python HTTP Client for calling APIs
https://sendgrid.com
MIT License
126 stars 101 forks source link

Add Category is Failed on Mail Class (mail.py) #85

Closed ibnbay00 closed 6 years ago

ibnbay00 commented 6 years ago

Issue Summary

Failed Add Category on Mail Class (mail.py)

Steps to Reproduce

mail = Mail(m_from, subject, m_to, content)
mail.add_category(event_name)

I think the problem is on code:

 Line 75
        if self.categories is not None:
            mail["categories"] = [category.get() for category in
                                  self.categories]

Sould be:

 Line 75
        if self.categories is not None:
            mail["categories"] = self.categories

Note: I want to make PR on that file but not find the file on this project... Thanks

Technical details:

ibnbay00 commented 6 years ago

I need it ASAP... please.... 👍

ibnbay00 commented 6 years ago

Wrong Project... sorry.. lol