Skip to content

table: raise a ValueError for an unknown borders_layout - #2078

Merged
andersonhc merged 1 commit into
py-pdf:masterfrom
RavSinghChandan:table-borders-layout-invalid
Oct 29, 2026
Merged

andersonhc merged 1 commit into
py-pdf:masterfrom
RavSinghChandan:table-borders-layout-invalid

Conversation

@RavSinghChandan

Copy link
Copy Markdown

table(borders_layout="BOGUS") raised a bare AttributeError: TableBordersLayout.coerce() caught ValueError around getattr(), which raises AttributeError. It now reaches its intended ValueError: BOGUS is not a valid TableBordersLayout, like cell_fill_mode and v_align.

  • A unit test is covering the code added / modified by this PR
  • A mention of the change is present in CHANGELOG.md
  • This PR is ready to be merged

@andersonhc
andersonhc merged commit 869d810 into py-pdf:master Oct 29, 2026
23 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