From 876ba1bf2405557f5a39b35f330f96566f002b22 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Tue, 5 Sep 2023 23:57:05 -0400 Subject: [PATCH] null check: check before accessing config in 'get_all_crawl_search_values' (#1144) --- backend/btrixcloud/basecrawls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/btrixcloud/basecrawls.py b/backend/btrixcloud/basecrawls.py index dd8d576d..b21eab05 100644 --- a/backend/btrixcloud/basecrawls.py +++ b/backend/btrixcloud/basecrawls.py @@ -519,6 +519,8 @@ class BaseCrawlOps: if not cid: continue config = await self.crawl_configs.get_crawl_config(cid, org) + if not config: + continue first_seed = config.config.seeds[0] first_seeds.add(first_seed.url)