forked from JECSand/yahoofinancials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ | |
|
||
setup( | ||
name='yahoofinancials', | ||
version='1.0', | ||
version='1.1', | ||
description='A powerful financial data module used for pulling both fundamental and technical data from Yahoo Finance', | ||
long_description=long_description, | ||
url='https://github.com/JECSand/yahoofinancials', | ||
download_url='https://github.com/JECSand/yahoofinancials/archive/1.0.tar.gz', | ||
download_url='https://github.com/JECSand/yahoofinancials/archive/1.1.tar.gz', | ||
author='Connor Sanders', | ||
author_email='[email protected]', | ||
license='MIT', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
""" | ||
============================== | ||
The Yahoo Financials Module | ||
Version: 1.0 | ||
Version: 1.1 | ||
============================== | ||
Author: Connor Sanders | ||
Email: [email protected] | ||
Version Released: 8/22/2018 | ||
Version Released: 8/23/2018 | ||
Tested on Python 2.7 and 3.5 | ||
Copyright (c) 2018 Connor Sanders | ||
|
@@ -585,7 +585,7 @@ def _financial_statement_data(self, stmt_type, stmt_code, field_name, freq): | |
if isinstance(self.ticker, str): | ||
try: | ||
date_key = re_data[self.ticker][0].keys()[0] | ||
except (IndexError, AttributeError): | ||
except (IndexError, AttributeError, TypeError): | ||
date_key = list(re_data[self.ticker][0])[0] | ||
data = re_data[self.ticker][0][date_key][field_name] | ||
else: | ||
|