Skip to content

Fix link-check crash from html module shadowing - #856

Open
LukasWallrich wants to merge 1 commit into
mainfrom
fix/link-check-html-shadow
Open

Fix link-check crash from html module shadowing#856
LukasWallrich wants to merge 1 commit into
mainfrom
fix/link-check-html-shadow

Conversation

@LukasWallrich

Copy link
Copy Markdown
Contributor

The DOI validation step failed with AttributeError: 'PosixPath' object has no attribute 'unescape' (run 31986717339).

The page loop used html as its variable name, rebinding the imported html module to a Path before html.unescape() is called. Renamed the loop variable to page_file.

Verified locally by extracting the step's script and running it over a fake site: real DOIs (incl. a SICI DOI with parens, an HTML-escaped bioRxiv DOI with a version suffix) pass, a fabricated DOI is reported as broken.

🤖 Generated with Claude Code

The DOI validation step iterates site pages with `for html in
SITE_ROOT.rglob(...)`, which rebinds the imported `html` module to a Path,
so `html.unescape(...)` raises AttributeError and the job fails. Rename the
loop variable to `page_file`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@LukasWallrich
LukasWallrich requested a review from a team as a code owner August 19, 2026 15:16
@github-actions

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@LukasWallrich

LukasWallrich commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Staging Deployment Status

This PR has been successfully deployed to staging as part of an aggregated deployment.

Deployed at: 2026-08-19 15:51:40 UTC
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Spell Check Passed

No spelling issues found when checking 1 changed file(s)! 🎉

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.

1 participant