We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bb98d commit 014d499Copy full SHA for 014d499
1 file changed
ietf/announcements/send_scheduled.py
@@ -16,8 +16,8 @@ def send_scheduled_announcement(announcement):
16
# announcement.content_type can contain a case-sensitive parts separator,
17
# so we need to keep it as is, not lowercased, but we want a lowercased
18
# version for the coming comparisons.
19
- content_type_lowercase = announcement.content_type
20
- if not content_type or 'text/plain' in content_type_lowercase:
+ content_type_lowercase = announcement.content_type.lower()
+ if not content_type_lowercase or 'text/plain' in content_type_lowercase:
21
send_mail_text(None, announcement.to_val, announcement.from_val, announcement.subject,
22
body, cc=announcement.cc_val, bcc=announcement.bcc_val)
23
elif 'multipart/' in content_type_lowercase:
0 commit comments