Title: Impossible to use dict as a custom arg · Issue #1008 · sendgrid/sendgrid-python · GitHub
Open Graph Title: Impossible to use dict as a custom arg · Issue #1008 · sendgrid/sendgrid-python
X Title: Impossible to use dict as a custom arg · Issue #1008 · sendgrid/sendgrid-python
Description: Issue Summary It is impossible to use dict as a custom arg. Steps to Reproduce Create Main instance Call add_custom_arg method or custom_arg setter to set a custom arg. For example: {'test': 'true'} When run the app, the add_custom_arg w...
Open Graph Description: Issue Summary It is impossible to use dict as a custom arg. Steps to Reproduce Create Main instance Call add_custom_arg method or custom_arg setter to set a custom arg. For example: {'test': 'true'...
X Description: Issue Summary It is impossible to use dict as a custom arg. Steps to Reproduce Create Main instance Call add_custom_arg method or custom_arg setter to set a custom arg. For example: {'test'...
Opengraph URL: https://github.com/sendgrid/sendgrid-python/issues/1008
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Impossible to use dict as a custom arg","articleBody":"\u003c!--\r\nIf this is a feature request, make sure you search Issues for an existing request before creating a new one!\r\n\r\nPlease utilize the template below to help us resolve your issue.\r\n\r\nNote that many issues can be resolved by updating to the latest version.\r\n-->\r\n\r\n### Issue Summary\r\nIt is impossible to use `dict` as a custom arg.\r\n\r\n### Steps to Reproduce\r\n1. Create `Main` instance\r\n2. Call `add_custom_arg` method or `custom_arg` setter to set a custom arg. For example: `{'test': 'true'}`\r\n3. When run the app, the `add_custom_arg` will raise an `AttributeError`.\r\n\r\n### Code Snippet\r\n```python\r\nmail = Mail()\r\nmail.add_custom_arg({'test': 'true'})\r\n```\r\n\r\n### Exception/Log\r\n```\r\nTraceback (most recent call last):\r\n ...\r\n File \"/app/sendgrid/helpers/mail/mail.py\", line 561, in custom_arg\r\n self.add_custom_arg(custom_arg)\r\n File \"/app/sendgrid/helpers/mail/mail.py\", line 569, in add_custom_arg\r\n if custom_arg.personalization is not None:\r\nAttributeError: 'dict' object has no attribute 'personalization'\r\n```\r\n\r\n### Technical details:\r\n* sendgrid-python version: 6.8.0\r\n* python version: 3.8\r\n\r\n","author":{"url":"https://github.com/nakeeon","@type":"Person","name":"nakeeon"},"datePublished":"2021-09-10T13:53:47Z","url":"https://github.com/sendgrid/sendgrid-python/issues/1008"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1eda955a-f657-aab7-4969-40f96581c9d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93BE:EC78C:6ECD81:941ECE:6B062CFD |
| html-safe-nonce | 5173fc8dab19663c77e142ea10cd968926c4b20526481c05ef80694b845236be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0JFOkVDNzhDOjZFQ0Q4MTo5NDFFQ0U6NkIwNjJDRkQiLCJ2aXNpdG9yX2lkIjoiODYwNjE4OTcyOTczMTE2NjY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | de1ccdf0ababf31f695f75700106f1a15d04a0bf388f86b93ac3a68817a0786c |
| hovercard-subject-tag | issue:993258367 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sendgrid/sendgrid-python/1008/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1873ceea97afea62d87f8b72bf1b8fceba87660faf9f19e95178533bc111d716/sendgrid/sendgrid-python/issues/1008 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1873ceea97afea62d87f8b72bf1b8fceba87660faf9f19e95178533bc111d716/sendgrid/sendgrid-python/issues/1008 |
| og:image:alt | Issue Summary It is impossible to use dict as a custom arg. Steps to Reproduce Create Main instance Call add_custom_arg method or custom_arg setter to set a custom arg. For example: {'test': 'true'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nakeeon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/sendgrid/sendgrid-python git https://github.com/sendgrid/sendgrid-python.git |
| octolytics-dimension-user_id | 181234 |
| octolytics-dimension-user_login | sendgrid |
| octolytics-dimension-repository_id | 3546794 |
| octolytics-dimension-repository_nwo | sendgrid/sendgrid-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3546794 |
| octolytics-dimension-repository_network_root_nwo | sendgrid/sendgrid-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width