From 75bea9f96dd5cf7aa1ecd3919f4c47c714263916 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Tue, 13 Aug 2024 18:34:19 +0000 Subject: [PATCH] zmirror: Drop empty zulip messages. Zulip will reject sending these, so there is no need to construct them. --- zulip/integrations/zephyr/zephyr_mirror_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zulip/integrations/zephyr/zephyr_mirror_backend.py b/zulip/integrations/zephyr/zephyr_mirror_backend.py index 10f1cf537..549d712ea 100755 --- a/zulip/integrations/zephyr/zephyr_mirror_backend.py +++ b/zulip/integrations/zephyr/zephyr_mirror_backend.py @@ -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)