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_summary_data() freezes the application with a delisted stock symbol #187

Open
alphaveneno opened this issue Apr 7, 2024 · 0 comments

Comments

@alphaveneno
Copy link

sample code:
try: financials = yf(symbol) summary = financials.get_summary_data(reformat=True) print('summary is present:',summary is not None) stock_summary[the_date] = summary[symbol] with open(path+'summary/'+stock+'.json', mode='w',encoding='utf-8') as write_file: json.dump(stock_summary, write_file) print('summary data written') write_file.close() except (KeyError, ConnectionError, RuntimeError, Exception): print('unable to add to',symbol) finally: index += 1 print('index is:',index,'\n')

The line:

summary = financials.get_summary_data(reformat=True)

freezes the app if a delisted stock symbol is used in yf() to derive financials.

Adding or removing arguments (i.e; reformat=True , reformat=False) does not make any difference.

It does not kick-out an exception, just freezes

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

1 participant