Skip to content

Commit 75bea9f

Browse files
alexmvtimabbott
authored andcommitted
zmirror: Drop empty zulip messages.
Zulip will reject sending these, so there is no need to construct them.
1 parent 43a4900 commit 75bea9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zulip/integrations/zephyr/zephyr_mirror_backend.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ def send_zulip_worker(zulip_queue: "Queue[ZephyrDict]", zulip_client: zulip.Clie
554554
while True:
555555
zeph = zulip_queue.get()
556556
try:
557+
if zeph["content"] == "":
558+
continue
557559
res = send_zulip(zulip_client, zeph)
558560
if res.get("result") != "success":
559561
logger.error("Error relaying zephyr:\n%s\n%s", zeph, res)

0 commit comments

Comments
 (0)