Skip to content

Commit

Permalink
Refactored session management system to handle cookie and crumbs better.
Browse files Browse the repository at this point in the history
Added fixes for #167, #166, #160.
  • Loading branch information
connorsanders committed Dec 13, 2023
1 parent d542ec6 commit ac3e22c
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 < 100:
while i < 150:
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, 10))
time.sleep(random.randint(3, 15))
continue


Expand Down

0 comments on commit ac3e22c

Please sign in to comment.