Skip to content

Commit

Permalink
Changed lines 283 and 354
Browse files Browse the repository at this point in the history
ranaroussi#191

To solve empty statement returns
  • Loading branch information
andrewdevilliers authored Jun 28, 2020
1 parent 476cf81 commit c2ce5bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yfinance/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ def cleanup(data):
data = utils.get_json(url, proxy)

# holders
url = "{}/{}/holders".format(self._scrape_url, self.ticker)
holders = _pd.read_html(url)
holders = _pd.read_html(url+'/holders')
self._major_holders = holders[0]
self._institutional_holders = holders[1]
if 'Date Reported' in self._institutional_holders:
Expand Down

0 comments on commit c2ce5bf

Please sign in to comment.