Removed unnecessary If block

PyLint R1731
This commit is contained in:
Matt Joyce 2024-05-23 08:42:07 +10:00
parent 7d2efe5acb
commit 48e91c89e7

View File

@ -264,8 +264,7 @@ class FirecrawlApp:
else:
raise Exception('Crawl job completed but no data was returned')
elif status_data['status'] in ['active', 'paused', 'pending', 'queued']:
if timeout < 2:
timeout = 2
timeout=max(timeout,2)
time.sleep(timeout) # Wait for the specified timeout before checking again
else:
raise Exception(f'Crawl job failed or was stopped. Status: {status_data["status"]}')