From e182bfcb98ed03ecdeeb05b4cddf07afbe1088bd Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 14 Nov 2012 11:26:16 -0500 Subject: [PATCH] zephyr_mirror: Don't try subscribing to an empty stream list. (imported from commit c8155459b768dd1fc192246c1f584abb30a7bc02) --- bots/zephyr_mirror.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index 5113017..b9a3c61 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -134,7 +134,8 @@ def update_subscriptions_from_humbug(): if stream in current_zephyr_subs: continue streams_to_subscribe.append((stream.encode("utf-8"), "*", "*")) - zephyr_bulk_subscribe(streams_to_subscribe) + if len(streams_to_subscribe) > 0: + zephyr_bulk_subscribe(streams_to_subscribe) def maybe_restart_mirroring_script(): if os.stat(os.path.join(options.root_path, "stamps", "restart_stamp")).st_mtime > start_time or \