Skip to content

Commit

Permalink
Merge pull request #171 from bjosun/master
Browse files Browse the repository at this point in the history
Update cache.py
  • Loading branch information
JECSand authored Dec 17, 2023
2 parents 2c7cf9c + b5459b2 commit 7e9f03f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yahoofinancials/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,15 +348,15 @@ def initialise(self):
self.initialised = 0 # failure
return
i = 0
while i < 150:
while i < 250:
try:
db.connect()
Cookie_db_proxy.initialize(db)
db.create_tables([_CookieSchema])
self.initialised = 1 # success
return
except _peewee.OperationalError:
time.sleep(random.randint(3, 15))
time.sleep(random.randint(3, 25))
continue
self.initialised = 0 # failure

Expand Down

0 comments on commit 7e9f03f

Please sign in to comment.