Skip to content

Commit 192b3d5

Browse files
authored
quickfix: always use .get() in case related field does not exist (#3043)
1 parent 530f050 commit 192b3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/btrixcloud/operator/crawls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ async def sync_crawls(self, data: MCSyncData):
348348
params["proxy_ssh_host_public_key"] = proxy.has_host_public_key
349349

350350
params["add_proxies"] = proxy or (
351-
not crawl.is_qa and data.related[CMAP].get("has-proxy-match-hosts")
351+
not crawl.is_qa and data.related.get(CMAP, {}).get("has-proxy-match-hosts")
352352
)
353353

354354
params["storage_filename"] = spec["storage_filename"]

0 commit comments

Comments
 (0)