Skip to content

Commit 8dc3c19

Browse files
committed
TST: TestYahooOptions issue
1 parent 52a032a commit 8dc3c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ def _get_expiry_months(self):
11431143
try:
11441144
links = root.xpath('.//*[@id="yfncsumtab"]')[0].xpath('.//a')
11451145
except IndexError:
1146-
return RemoteDataError('Expiry months not available')
1146+
raise RemoteDataError('Expiry months not available')
11471147

11481148
month_gen = (element.attrib['href'].split('=')[-1]
11491149
for element in links

0 commit comments

Comments
 (0)