Skip to content

Conversation

@mgunyho
Copy link

@mgunyho mgunyho commented Sep 6, 2023

When I was using svgutils for the first time and tried to use svgutils.compose.Figure, I had a typo in one of the units, which caused the following confusing error:

AttributeError: 'NoneType' object has no attribute 'groups'

This took me a while to figure out. With this PR, the error is a much nicer

ValueError: Could not parse unit in 'typo'

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.

1 participant