Skip to content

fix: don't abort the mirror run when a dependency download fails#101

Merged
philnewm merged 1 commit into
python-morgan:mainfrom
RISEFX:fix/continue-on-dep-download-error
Jul 14, 2026
Merged

fix: don't abort the mirror run when a dependency download fails#101
philnewm merged 1 commit into
python-morgan:mainfrom
RISEFX:fix/continue-on-dep-download-error

Conversation

@grische

@grische grische commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

The HTTPError handling in Mirrorer.mirror() only covered the top-level requirement. A 404 (or any other HTTP error) on a transitive dependency propagated out of the dependency loop and aborted the entire mirror run, leaving a partial mirror. Catch the error per dependency, log it, and continue with the remaining dependencies, matching the existing handling of top-level requirements.

@grische
grische requested a review from philnewm July 10, 2026 10:39
The HTTPError handling in Mirrorer.mirror() only covered the top-level
requirement. A 404 (or any other HTTP error) on a transitive dependency
propagated out of the dependency loop and aborted the entire mirror run,
leaving a partial mirror. Catch the error per dependency, log it, and
continue with the remaining dependencies, matching the existing handling
of top-level requirements.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@grische
grische force-pushed the fix/continue-on-dep-download-error branch from 305fab9 to cafcf0a Compare July 10, 2026 10:44

@philnewm philnewm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great fix to ensure it doesn't aboard

@philnewm
philnewm merged commit 98cb44f into python-morgan:main Jul 14, 2026
10 checks passed
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.

2 participants