Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Error #37

Open
efarjun opened this issue Dec 13, 2024 · 0 comments
Open

Attribute Error #37

efarjun opened this issue Dec 13, 2024 · 0 comments

Comments

@efarjun
Copy link

efarjun commented Dec 13, 2024

Does anyone know why I get and how I can prevent the following error:

"'NoneType' object has no attribute 'replace'

{
"errorMessage": "'NoneType' object has no attribute 'replace'",
"errorType": "AttributeError",
"stackTrace": [
" File "/var/task/main.py", line 38, in lambda_handler\n notifier.send_email(template_values)\n",
" File "/var/task/notifier.py", line 112, in send_email\n self.send_ses_email(template_values)\n",
" File "/var/task/notifier.py", line 119, in send_ses_email\n email_body = self.__render_email_body(template_values)\n",
" File "/var/task/notifier.py", line 95, in __render_email_body\n email = email.replace(placeholder, value)\n"
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant