Skip to content

Commit 89c7e59

Browse files
committed
Changing the retry_count logic to catch RemoteDataError.
1 parent 1982faa commit 89c7e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas_datareader/nasdaq_trader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def get_nasdaq_symbols(retry_count=3, timeout=30, pause=None):
100100
retry_count = -1
101101
except RemoteDataError:
102102
# retry on any exception
103+
retry_count -= 1
103104
if retry_count <= 0:
104105
raise
105106
else:
106-
retry_count -= 1
107107
time.sleep(pause)
108108

109109
return _ticker_cache

0 commit comments

Comments
 (0)