Skip to content

Fix error catching in str_to_int()#87

Open
Nightriff wants to merge 3 commits into
feature/gltf-exportfrom
fix/str_to_int_catches_wrong_error_type
Open

Fix error catching in str_to_int()#87
Nightriff wants to merge 3 commits into
feature/gltf-exportfrom
fix/str_to_int_catches_wrong_error_type

Conversation

@Nightriff

Copy link
Copy Markdown
Contributor

int() throws a ValueError, not a TypeError. If the add-on reads an unparsable value from the custom property, it currently errors out and gets soft locked because it doesn't catch the right exception.

This PR fixes that so it catches the exception being thrown correctly.

@Nightriff Nightriff added the bug Something isn't working label May 28, 2025
@Nightriff Nightriff self-assigned this May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant