diff --git a/pandas_datareader/yahoo/daily.py b/pandas_datareader/yahoo/daily.py index 3d3807e6..90fdf4bb 100644 --- a/pandas_datareader/yahoo/daily.py +++ b/pandas_datareader/yahoo/daily.py @@ -149,7 +149,7 @@ def _read_one_data(self, url, params): try: j = json.loads(re.search(ptrn, resp.text, re.DOTALL).group(1)) data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"] - except KeyError as exc: + except (KeyError, AttributeError) as exc: msg = "No data fetched for symbol {} using {}" raise RemoteDataError(msg.format(symbol, self.__class__.__name__)) from exc