Skip to content

Commit 7e9f03f

Browse files
authored
Merge pull request #171 from bjosun/master
Update cache.py
2 parents 2c7cf9c + b5459b2 commit 7e9f03f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yahoofinancials/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,15 @@ def initialise(self):
348348
self.initialised = 0 # failure
349349
return
350350
i = 0
351-
while i < 150:
351+
while i < 250:
352352
try:
353353
db.connect()
354354
Cookie_db_proxy.initialize(db)
355355
db.create_tables([_CookieSchema])
356356
self.initialised = 1 # success
357357
return
358358
except _peewee.OperationalError:
359-
time.sleep(random.randint(3, 15))
359+
time.sleep(random.randint(3, 25))
360360
continue
361361
self.initialised = 0 # failure
362362

0 commit comments

Comments
 (0)