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 226620d commit d542ec6
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
@@ -1,6 +1,6 @@
import logging
import time

import random
import peewee as _peewee
from threading import Lock
import os as _os
Expand Down Expand Up @@ -356,7 +356,7 @@ def initialise(self):
self.initialised = 1 # success
return
except _peewee.OperationalError:
time.sleep(10)
time.sleep(random.randint(3, 10))
continue


Expand Down

0 comments on commit d542ec6

Please sign in to comment.