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
In [9]: Orbit.from_sbdb("67/P") --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-9-75d3da3ffd57> in <module> ----> 1 Orbit.from_sbdb("67/P") ~/.pyenv/versions/poliastro37_4/lib/python3.7/site-packages/poliastro/twobody/orbit.py in from_sbdb(cls, name, **kargs) 572 ) 573 --> 574 a = obj["orbit"]["elements"]["a"].to(u.AU) * u.AU 575 ecc = float(obj["orbit"]["elements"]["e"]) * u.one 576 inc = obj["orbit"]["elements"]["i"].to(u.deg) * u.deg KeyError: 'orbit'
It should give something more meaningful, like ValueError("Object 67/P not found")
ValueError("Object 67/P not found")
The text was updated successfully, but these errors were encountered:
Fixed in #919!
Sorry, something went wrong.
No branches or pull requests
It should give something more meaningful, like
ValueError("Object 67/P not found")
The text was updated successfully, but these errors were encountered: