Skip to content

Replace panicking with raising a Python exception#57

Merged
baseplate-admin merged 2 commits intobaseplate-admin:masterfrom
dlozeve-pro:remove-unwrap
Feb 17, 2025
Merged

Replace panicking with raising a Python exception#57
baseplate-admin merged 2 commits intobaseplate-admin:masterfrom
dlozeve-pro:remove-unwrap

Conversation

@dlozeve-pro
Copy link
Copy Markdown
Contributor

@dlozeve-pro dlozeve-pro commented Feb 17, 2025

Some parts of the code were panicking, which could crash the entire Python interpreter. A possible improvement could be to propagate these errors to Python, raising a ValueError instead.

@dlozeve-pro dlozeve-pro changed the title Replace unwrap with Python exception Replace panicking with raising a Python exception Feb 17, 2025
@baseplate-admin
Copy link
Copy Markdown
Owner

Hey thank you for the PR, (i really appreciate it).

@baseplate-admin baseplate-admin merged commit ab68eff into baseplate-admin:master Feb 17, 2025
14 of 15 checks passed
@baseplate-admin
Copy link
Copy Markdown
Owner

Released in v0.2.0

@dlozeve-pro
Copy link
Copy Markdown
Contributor Author

No problem, thank you for the library and the quick response!

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