TypeError: get expected at least 1 argument, got 0
File "rollfox/esp.py", line 356, in call_sendgrid
client.send(message)
File "sendgrid/sendgrid.py", line 95, in send
response = self.client.mail.send.post(request_body=message.get())
File "sendgrid/helpers/mail/mail.py", line 958, in get
'mail_settings': self._get_or_none(self.mail_settings),
File "sendgrid/helpers/mail/mail.py", line 128, in _get_or_none
return from_obj.get() if from_obj is not None else None
Issue Summary
Trying to set the sandbox mode in an Email helper class, I get this exception: sendgrid/helpers/mail/mail.py in _get_or_none at line 128
this is how I'm trying to set the sandbox mode:
message.mail_settings = {'sandbox_mode':{'enable':is_sandbox}}
Code Snippet
Exception/Log
Technical details: