Skip to content

Fix for coordinate pair validation#21

Open
pgurniak wants to merge 1 commit into
adtech-labs:masterfrom
pgurniak:fix-coordinate-validation
Open

Fix for coordinate pair validation#21
pgurniak wants to merge 1 commit into
adtech-labs:masterfrom
pgurniak:fix-coordinate-validation

Conversation

@pgurniak
Copy link
Copy Markdown

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.

Comment thread theto/coordinate_utils.py
raise ValueError(
' '.join([
'List inputs are assumed to be coordinate pairs,',
'but this list has more than two elements:',
Copy link
Copy Markdown

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