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

Using a unit that is not listed in units.py raises a misleading Exception message #268

Open
tluth opened this issue Apr 6, 2023 · 0 comments

Comments

@tluth
Copy link

tluth commented Apr 6, 2023

After upgrading to the latest version and trying to pull down a commit object, I noticed I was getting the exception:
"Invalid units: expected type str but received <class 'str'> (squaremperperson)." which is obviously a bit confusing in itself, and I had to look through the code to realise that it's not actually related to types but just the fact that I used a unit which isn't recognised by speckle.

raise SpeckleInvalidUnitException(unit)

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

No branches or pull requests

1 participant