From 8dc3c1940b624861a531f4666bb2a988c0ceea8b Mon Sep 17 00:00:00 2001 From: jreback Date: Thu, 21 Aug 2014 13:09:53 -0400 Subject: [PATCH] TST: TestYahooOptions issue --- pandas/io/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/data.py b/pandas/io/data.py index d15522a33d4b1..f0b078944d8ea 100644 --- a/pandas/io/data.py +++ b/pandas/io/data.py @@ -1143,7 +1143,7 @@ def _get_expiry_months(self): try: links = root.xpath('.//*[@id="yfncsumtab"]')[0].xpath('.//a') except IndexError: - return RemoteDataError('Expiry months not available') + raise RemoteDataError('Expiry months not available') month_gen = (element.attrib['href'].split('=')[-1] for element in links