Skip to content

Commit 2a48ef6

Browse files
committed
Small validation logic update
1 parent aa78c1a commit 2a48ef6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/btrixcloud/crawlconfigs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ async def update_crawl_config(
547547
)
548548
if orig_crawl_config.config.failOnContentCheck:
549549
if not update.config or (
550-
update.config
551-
and update.config.failOnContentCheck not in (None, False)
550+
update.config and update.config.failOnContentCheck is not False
552551
):
553552
raise HTTPException(
554553
status_code=400, detail="fail_on_content_check_requires_profile"

0 commit comments

Comments
 (0)