Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a custom exception class for unique errors which is catchable with an try/except #1027

Open
sveneberth opened this issue Jan 12, 2024 · 0 comments
Labels
feature New feature or request Priority: Medium This issue may be useful, and needs some attention. refactoring Pull requests that refactor code but do not change its behavior.

Comments

@sveneberth
Copy link
Member

# TODO: Use a custom exception class which is catchable with an try/except
raise ValueError(
"The unique value '%s' of bone '%s' has been recently claimed!" %
(skelValues[key], key))

@sveneberth sveneberth added feature New feature or request Priority: Medium This issue may be useful, and needs some attention. refactoring Pull requests that refactor code but do not change its behavior. labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request Priority: Medium This issue may be useful, and needs some attention. refactoring Pull requests that refactor code but do not change its behavior.
Projects
None yet
Development

No branches or pull requests

1 participant