Skip to content

Commit c7b578f

Browse files
committed
Try to fix typing
1 parent 2401f14 commit c7b578f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/btrixcloud/operator/crawls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,10 +827,10 @@ async def fail_crawl(
827827
"""Mark crawl as failed, log crawl state and print crawl logs, if possible"""
828828
prev_state = status.state
829829

830-
failed_state = "failed"
831-
832830
if status.failReason and status.failReason == "not_logged_in":
833831
failed_state = "failed_not_logged_in"
832+
else:
833+
failed_state = "failed"
834834

835835
if not await self.mark_finished(crawl, status, failed_state, stats=stats):
836836
return False

0 commit comments

Comments
 (0)