-
Notifications
You must be signed in to change notification settings - Fork 730
Open
Labels
status: code review requestrequesting a community code review or review from Twiliorequesting a community code review or review from Twiliotype: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap
Description
Issue Summary
It is impossible to use dict as a custom arg.
Steps to Reproduce
- Create
Maininstance - Call
add_custom_argmethod orcustom_argsetter to set a custom arg. For example:{'test': 'true'} - When run the app, the
add_custom_argwill raise anAttributeError.
Code Snippet
mail = Mail()
mail.add_custom_arg({'test': 'true'})Exception/Log
Traceback (most recent call last):
...
File "/app/sendgrid/helpers/mail/mail.py", line 561, in custom_arg
self.add_custom_arg(custom_arg)
File "/app/sendgrid/helpers/mail/mail.py", line 569, in add_custom_arg
if custom_arg.personalization is not None:
AttributeError: 'dict' object has no attribute 'personalization'
Technical details:
- sendgrid-python version: 6.8.0
- python version: 3.8
Metadata
Metadata
Assignees
Labels
status: code review requestrequesting a community code review or review from Twiliorequesting a community code review or review from Twiliotype: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap