Skip to content

Commit

Permalink
zmirror: Drop empty zulip messages.
Browse files Browse the repository at this point in the history
Zulip will reject sending these, so there is no need to construct them.
  • Loading branch information
alexmv authored and timabbott committed Aug 13, 2024
1 parent 43a4900 commit 75bea9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zulip/integrations/zephyr/zephyr_mirror_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75bea9f

Please sign in to comment.