zmirror: Drop empty zulip messages.
Zulip will reject sending these, so there is no need to construct them.
This commit is contained in:
parent
43a4900e1f
commit
75bea9f96d
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue