X Tutup
Skip to content

replace asserts with explicit error handling#589

Merged
sinaatalay merged 1 commit intorendercv:mainfrom
kellemar:replace-asserts-with-error-handling
Dec 25, 2025
Merged

replace asserts with explicit error handling#589
sinaatalay merged 1 commit intorendercv:mainfrom
kellemar:replace-asserts-with-error-handling

Conversation

@kellemar
Copy link
Contributor

asserts in production code get stripped out when python runs with -O flag, which could cause weird silent failures

swapped them out for explicit if checks that raise RenderCVInternalError instead. same behavior, but now it actually works regardless of how python is invoked

touched 7 files, 15 asserts total - all tests still pass

@sinaatalay
Copy link
Member

This is perfect, thank you!

@sinaatalay sinaatalay merged commit 71298ca into rendercv:main Dec 25, 2025
11 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

X Tutup