Skip to content

Commit e5b4039

Browse files
CLN: Unnecessary try: block removed from Options
1 parent 8734d5c commit e5b4039

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas_datareader/data.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,11 +1193,7 @@ def get_all_data(self, call=True, put=True):
11931193
11941194
"""
11951195

1196-
try:
1197-
expiry_dates = self.expiry_dates
1198-
except AttributeError:
1199-
expiry_dates, _ = self._get_expiry_dates_and_links()
1200-
1196+
expiry_dates = self.expiry_dates
12011197
return self._get_data_in_date_range(dates=expiry_dates, call=call, put=put)
12021198

12031199
def _get_data_in_date_range(self, dates, call=True, put=True):

0 commit comments

Comments
 (0)