Use type: ignore instead of noqa

Wrong linter ignore type
This commit is contained in:
zandercymatics 2024-06-03 08:50:01 -06:00
parent 559254ab07
commit a949ad8010
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -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)