mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
email_senders: realm_id can exist but be None.
This commit is contained in:
committed by
Tim Abbott
parent
d134c1fa01
commit
1e1292f2f5
@@ -64,7 +64,7 @@ class EmailSendingWorker(LoopQueueProcessingWorker):
|
||||
if "failed_tries" in copied_event:
|
||||
del copied_event["failed_tries"]
|
||||
handle_send_email_format_changes(copied_event)
|
||||
if "realm_id" in copied_event:
|
||||
if copied_event.get("realm_id") is not None:
|
||||
# "realm" does not serialize over the queue, so we send the realm_id
|
||||
copied_event["realm"] = Realm.objects.get(id=copied_event["realm_id"])
|
||||
del copied_event["realm_id"]
|
||||
|
||||
Reference in New Issue
Block a user