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

minor bug fix utils.retrieve_over_http #521

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions brainglobe_atlasapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
tb.add_row(
"name:",
Text.from_markup(
metadata["name"] + f' [{gray}](v{metadata["version"]})'
metadata["name"] + f" [{gray}](v{metadata['version']})"
),
)
tb.add_row("species:", Text.from_markup(f'[i]{metadata["species"]}'))
tb.add_row("species:", Text.from_markup(f"[i]{metadata['species']}"))

Check warning on line 59 in brainglobe_atlasapi/utils.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/utils.py#L59

Added line #L59 was not covered by tests
tb.add_row("citation:", Text.from_markup(f"{cit_name} [{gray}]{cit_link}"))
tb.add_row("link:", Text.from_markup(metadata["atlas_link"]))

Expand Down Expand Up @@ -225,7 +225,7 @@
fn_update(completed, tot)

except requests.exceptions.ConnectionError:
output_file_path.unlink()
output_file_path.unlink(missing_ok=True)

Check warning on line 228 in brainglobe_atlasapi/utils.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/utils.py#L228

Added line #L228 was not covered by tests
raise requests.exceptions.ConnectionError(
f"Could not download file from {url}"
)
Expand Down