Skip to content

Fix for issue #2237: do not cache results that cannot be parsed.#2253

Merged
bsipocz merged 2 commits into
astropy:mainfrom
mkelley:jplhorizons-failed-query-cache
Dec 25, 2021
Merged

Fix for issue #2237: do not cache results that cannot be parsed.#2253
bsipocz merged 2 commits into
astropy:mainfrom
mkelley:jplhorizons-failed-query-cache

Conversation

@mkelley

@mkelley mkelley commented Dec 20, 2021

Copy link
Copy Markdown
Contributor

Address #2237 by catching result parse errors and removing the corresponding cached file, if applicable. Also add a mock test to that effect.

@codecov

codecov Bot commented Dec 20, 2021

Copy link
Copy Markdown

Codecov Report

Merging #2253 (55d6619) into main (17c79f9) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2253      +/-   ##
==========================================
+ Coverage   62.40%   62.44%   +0.03%     
==========================================
  Files         131      131              
  Lines       16777    16785       +8     
==========================================
+ Hits        10470    10481      +11     
+ Misses       6307     6304       -3     
Impacted Files Coverage Δ
astroquery/jplhorizons/core.py 66.34% <100.00%> (+1.85%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17c79f9...55d6619. Read the comment docs.

@mkelley mkelley changed the title Fix for issue #2237: do not cache results that cannot be parsed. WIP: Fix for issue #2237: do not cache results that cannot be parsed. Dec 20, 2021
@mkelley mkelley changed the title WIP: Fix for issue #2237: do not cache results that cannot be parsed. Fix for issue #2237: do not cache results that cannot be parsed. Dec 20, 2021
@bsipocz bsipocz added this to the v0.4.5 milestone Dec 20, 2021
@bsipocz bsipocz merged commit e500566 into astropy:main Dec 25, 2021
@bsipocz

bsipocz commented Dec 25, 2021

Copy link
Copy Markdown
Member

Thanks @mkelley!

@mkelley mkelley deleted the jplhorizons-failed-query-cache branch January 7, 2022 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants