Skip to content

Commit

Permalink
1.1 push
Browse files Browse the repository at this point in the history
  • Loading branch information
JECSand committed Aug 23, 2018
1 parent 5d14290 commit 65f66c9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
1.0 08/22/2018 -- Removed the get_stock_summary_data() method.
1.0 08/22/2018 -- Removed the requests dependency and replaced it with urllib.
1.0 08/22/2018 -- Updated README.md to README.rst
1.1 08/23/2018 -- Fixed net income python 3 error
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ A python module that returns stock, cryptocurrency, forex, mutual fund, commodit
.. image:: https://travis-ci.org/JECSand/yahoofinancials.svg?branch=master
:target: https://travis-ci.org/JECSand/yahoofinancials

Current Version: v1.0
Current Version: v1.1

Version Released: 08/22/2018
Version Released: 08/23/2018

Report any bugs by opening an issue here: https://github.com/JECSand/yahoofinancials/issues

Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions yahoofinancials/__init__.py
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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 65f66c9

Please sign in to comment.