Skip to content

Commit

Permalink
Increase timeout exponentially when finding any robots
Browse files Browse the repository at this point in the history
  • Loading branch information
Phype committed Nov 3, 2021
1 parent 03b0938 commit db2f764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/purei9_unofficial/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,6 @@ def find_robots(timeout = 0.2 , retry_count = 1) -> List[FoundRobot]:
s.close()

if robots_found == [] and retry_count > 0:
return find_robots(timeout, retry_count - 1)
return find_robots(timeout * 2.0, retry_count - 1)
else:
return robots_found

0 comments on commit db2f764

Please sign in to comment.