Skip to content

Bugfix: stocks.get_stock_financial_summary raises ValueError and lxml.etree.ParserError#444

Open
p1ck4rd wants to merge 2 commits into
alvarobartt:masterfrom
p1ck4rd:bugfix-get_stock_financial_summary
Open

Bugfix: stocks.get_stock_financial_summary raises ValueError and lxml.etree.ParserError#444
p1ck4rd wants to merge 2 commits into
alvarobartt:masterfrom
p1ck4rd:bugfix-get_stock_financial_summary

Conversation

@p1ck4rd

@p1ck4rd p1ck4rd commented Sep 14, 2021

Copy link
Copy Markdown

Hi!
I found several bugs in the stocks.get_stock_financial_summary function:

  • if the table of the requested financial summary contains empty strings in values, ValueError is raised
  • if the /instruments/Financials/changesummaryreporttypeajax endpoint returns an empty body, lxml.etree.ParserError is raised

Here is the fix.

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

Successfully merging this pull request may close these issues.

1 participant