Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Increase number of attempts we can try
Browse files Browse the repository at this point in the history
  • Loading branch information
markbrough committed Apr 23, 2019
1 parent b40a2fe commit 663a9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -45,7 +45,7 @@ def parse_row(row, attempt=1, speed=0):
try:
scraperwiki.sqlite.save(key, row, 'rates')
except sqlalchemy.exc.OperationalError:
if attempt ==5:
if attempt == 20:
raise FailedAfterRepeatedAttempts("""Failed after {} attempts at {}ms
to import row data {}""".format(attempt, speed, row))
parse_row(row, attempt=attempt+1, speed=speed+10)
Expand Down

0 comments on commit 663a9ad

Please sign in to comment.