Skip to content

Fix UnboundLocalError in Markdown report when all checks pass#5059

Open
PeterDekkers wants to merge 2 commits intofonttools:mainfrom
klim-type-foundry:main
Open

Fix UnboundLocalError in Markdown report when all checks pass#5059
PeterDekkers wants to merge 2 commits intofonttools:mainfrom
klim-type-foundry:main

Conversation

@PeterDekkers
Copy link
Copy Markdown
Contributor

@PeterDekkers PeterDekkers commented Mar 1, 2026

Description

A super simple fix, to ensure the variable deprecation_warning is instantiated in all situations, to prevent an UnboundLocalError.

I've also taken the opportunity to only set the deprecation_warning once, as it was being set inside a for loop and could be set multiple times to the same exact value.

Fixes #5058.
Fixes #5053.

Checklist

  • update CHANGELOG.md
  • wait for the tests to pass
  • request a review

@PeterDekkers PeterDekkers changed the title Fix variable referenced before assignment in Markdown report Fix UnboundLocalError in Markdown report when all checks pass Mar 1, 2026
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.

Bug - Markdown report throws error when all checks pass Generating markdown throws error if all checks pass

1 participant