Skip to content
New issue

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

searcher: Fix JSONdecodeError in unwinding file indexes #113

Merged
merged 1 commit into from
Jan 4, 2021
Merged

searcher: Fix JSONdecodeError in unwinding file indexes #113

merged 1 commit into from
Jan 4, 2021

Conversation

ParthS007
Copy link
Member

closes #112

@codecov-io
Copy link

Codecov Report

Merging #113 (2c89478) into master (14aeeac) will decrease coverage by 3.54%.
The diff coverage is 81.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
- Coverage   94.71%   91.17%   -3.55%     
==========================================
  Files          11       11              
  Lines         568      612      +44     
==========================================
+ Hits          538      558      +20     
- Misses         30       54      +24     
Impacted Files Coverage Δ
cernopendata_client/validator.py 96.72% <ø> (ø)
cernopendata_client/downloader.py 79.85% <80.32%> (-13.35%) ⬇️
cernopendata_client/searcher.py 87.39% <82.75%> (-1.29%) ⬇️
cernopendata_client/cli.py 96.79% <100.00%> (-0.10%) ⬇️

@ParthS007 ParthS007 marked this pull request as ready for review December 18, 2020 10:54
url_file = file_[0].replace(SERVER_ROOT_URI, server)
json_files = requests.get(url_file).json()
try:
url_file = "{}/record/{}/files/{}".format(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the problem at hand.

That said, I'm wondering whether we shouldn't introduce at this point in time already the distinction between EOSPUBLIC locations and /record/NNN/files/foo.root locations. Since this topic will touch other parts, I'll probably make another ticket about this.

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.

searcher: JSON Decode error for --verbose
3 participants