Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_portfolio_status() returns AttributeError #23

Closed
MSXR opened this issue Jan 8, 2018 · 3 comments
Closed

get_portfolio_status() returns AttributeError #23

MSXR opened this issue Jan 8, 2018 · 3 comments

Comments

@MSXR
Copy link

MSXR commented Jan 8, 2018

3 lines:

from InvestopediaApi import ita
inv = ita.Account("email", "pwd")
inv.get_portfolio_status()

returns

Traceback (most recent call last):
File "/Users/Ember/Documents/BitBot/main.py", line 3, in
inv.get_portfolio_status()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/InvestopediaApi/ita.py", line 67, in get_portfolio_status
account_value = parsed_html.find('span', attrs={'id': acct_val_id}).text
AttributeError: 'NoneType' object has no attribute 'text'

any ideas? thanks.

@MSXR
Copy link
Author

MSXR commented Jan 8, 2018

Ah Sorry Just realise this is already fixed

@MSXR MSXR closed this as completed Jan 8, 2018
@kirkthaker
Copy link
Owner

Please add a link to the solution in case anyone else stumbles on this issue, thanks!

@MSXR
Copy link
Author

MSXR commented Jan 11, 2018

link, #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants