Skip to content

get_summary_data() freezes the application with a delisted stock symbol #187

@alphaveneno

Description

@alphaveneno

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions