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

Small bug in utils.py #7

Closed
dsacc opened this issue Jul 11, 2017 · 0 comments
Closed

Small bug in utils.py #7

dsacc opened this issue Jul 11, 2017 · 0 comments

Comments

@dsacc
Copy link

dsacc commented Jul 11, 2017

In distanz():

# Size verification
if rx != ry:
    raise("The sizes of x and y do not fit")

when the condition is met the following error message is returned:

TypeError: exceptions must derive from BaseException

Something like the following should fix it:

# Size verification
if rx != ry:
    raise ValueError("The sizes of x and y do not fit")
@mdeff mdeff closed this as completed in 325f2b1 Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant