mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-13 14:35:14 +02:00
Use type: ignore instead of noqa
Wrong linter ignore type
This commit is contained in:
parent
559254ab07
commit
a949ad8010
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def send_templated_email(
|
|||
Raises EmailSendingError if SES client could not be accessed
|
||||
"""
|
||||
|
||||
if flag_is_active(None, "disable_email_sending") and not settings.IS_PRODUCTION: # noqa
|
||||
if flag_is_active(None, "disable_email_sending") and not settings.IS_PRODUCTION: # type: ignore
|
||||
message = "Could not send email. Email sending is disabled due to flag 'disable_email_sending'."
|
||||
raise EmailSendingError(message)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue