question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hey guys,

thanks for this neat package! Srly tho, I have to report a bug. Not sure if it only affects me, however I checked with the API and it works. So i figured it has to be some bug in the package:

If I do

dcf_annually = fa.discounted_cash_flow("XXX", api_key, period="annual")

i get:

KeyError                                  
discounted_cash_flow(ticker, api_key, period, limit)
    246 if 'Error Message' in data:
    247     raise ValueError(data['Error Message'])
--> 249 data_json = data[0]['historicalDCF']
    251 data_formatted = {}
    253 if period == "quarter":

KeyError: 'historicalDCF'

This occurred for many companies. Could you fix it, if it is related to the package or otherwise give me some hints, what might have caused this error?

Best regards Chris

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JerBoumacommented, May 7, 2022

I’ll look into this and fix it Monday!

0reactions
ChrisDelCleacommented, Jul 5, 2022

ok thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Y-zip Bug Bivy - DCF - YAMA Mountain Gear
Y-zip Bug Bivy - DCF. $190.00. Size: Smaller. Bigger. Length: Regular (84"). Longer (90"). Options: Stand-alone rigging kit. Selection will add to the...
Read more >
BUG 25.74 0.02 0.08% Global X Cybersecurity ETF ...
The fund invests at least 80% of its total assets in the securities of the underlying index and in American Depositary Receipts ("ADRs")...
Read more >
DCF-2277 5/19 (Rev.) - CT.gov
ALL CLASS B & C ERRORS MUST BE REPORTED TO DCF RISK MANAGEMENT. DCF.RISKMANAGEMENT@CT. ... error). Medication not given by a parent /...
Read more >
Cuben Bug Bivy - Borah Gear
A lighter version of our bug bivy, constructed with 0.5oz no-see-um netting as well as a 0.8oz Dyneema ® Composite Fabric floor ......
Read more >
What the f*ck does it take for DCF to save a child?
"The bed in which the child slept was peppered with bed bugs, and his sheets were dotted with blood spots from where his...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found