Skip to content

Do not error out if the first download attempt fails for any reason.#16

Open
gouttegd wants to merge 1 commit into
mainfrom
fix-download
Open

Do not error out if the first download attempt fails for any reason.#16
gouttegd wants to merge 1 commit into
mainfrom
fix-download

Conversation

@gouttegd
Copy link
Copy Markdown
Collaborator

This commit reorders the exception handling logic within the odk-helper download command.

We catch download errors inside the loop on download attempts, rather than outside, so that a failed download attempt (for any reason at all) does not automatically cause the command to error out without even trying the remaining attempts. Only when the last attempt fails do we actually error out.

This fixes INCATools/ontology-development-kit#1349.

This commit reorders the exception handling logic within the `odk-helper
download` command.

We catch download errors _inside_ the loop on download attempts, rather
than _outside_, so that a failed download attempt (for any reason at
all) does not automatically cause the command to error out without even
trying the remaining attempts. Only when the _last_ attempt fails do we
actually error out.

This fixes INCATools/ontology-development-kit#1349.
@gouttegd gouttegd self-assigned this May 23, 2026
@gouttegd gouttegd requested a review from matentzn May 23, 2026 15:22
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.

ODK dev: goplus mirror download fails on .owl.gz with no fallback to .owl

1 participant