mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Use Set Literals Instead of Sets from Lists
This commit is contained in:
@@ -98,7 +98,7 @@ class AnymailRecipientStatus:
|
||||
try:
|
||||
# message_id must be something that can be put in a set
|
||||
# (see AnymailStatus.set_recipient_status)
|
||||
set([message_id])
|
||||
{message_id}
|
||||
except TypeError:
|
||||
raise TypeError("Invalid message_id %r is not scalar type" % message_id)
|
||||
if status is not None and status not in ANYMAIL_STATUSES:
|
||||
|
||||
Reference in New Issue
Block a user