-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
⬆ Bump emails from 0.6 to 1.1.2 in the python-packages group across 1 directory #2369
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| from pathlib import Path | ||
| from typing import Any | ||
|
|
||
| import emails # type: ignore[import-untyped] | ||
| import emails | ||
| import jwt | ||
| from jinja2 import Template | ||
| from jwt.exceptions import InvalidTokenError | ||
|
|
@@ -37,7 +37,8 @@ def send_email( | |
| html_content: str = "", | ||
| ) -> None: | ||
| assert settings.emails_enabled, "no provided configuration for email variables" | ||
| message = emails.Message( | ||
| assert settings.EMAILS_FROM_EMAIL # For type checker | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's already checked in |
||
| message = emails.message.Message( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To fix |
||
| subject=subject, | ||
| html=html_content, | ||
| mail_from=(settings.EMAILS_FROM_NAME, settings.EMAILS_FROM_EMAIL), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In v1.0 they added typing for public API: https://github.com/lavr/python-emails/blob/master/CHANGELOG.md#10