zmirror: Drop empty zulip messages.

Zulip will reject sending these, so there is no need to construct them.
This commit is contained in:
Alex Vandiver 2024-08-13 18:34:19 +00:00 committed by Tim Abbott
parent 43a4900e1f
commit 75bea9f96d

View file

@ -554,6 +554,8 @@ def send_zulip_worker(zulip_queue: "Queue[ZephyrDict]", zulip_client: zulip.Clie
while True:
zeph = zulip_queue.get()
try:
if zeph["content"] == "":
continue
res = send_zulip(zulip_client, zeph)
if res.get("result") != "success":
logger.error("Error relaying zephyr:\n%s\n%s", zeph, res)