Skip to content

Fix for coordinate pair validation #21

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pgurniak
Copy link

Simple fix for #20, plus some minor exception message changes that would've made it easier for me to figure out what was happening when I tripped on this.

raise ValueError(
' '.join([
'List inputs are assumed to be coordinate pairs,',
'but this list has more than two elements:',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'but this list has more than two elements:',
'but this list has more (or less) than two elements:',

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.

3 participants