jetbrains: make update script robust against if no channels exist

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
Dominik Ritter
2023-10-14 01:47:16 +02:00
committed by Weijia Wang
co-authored by Weijia Wang
parent ba5a966863
commit 618d0459eb
@@ -31,6 +31,7 @@ def download_channels():
return {
channel["@name"]: channel
for product in products
if "channel" in product
for channel in one_or_more(product["channel"])
}