Skip to content

Commit

Permalink
Fix get_token() call in polygon code.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordsutch committed Jul 20, 2021
1 parent 85f45c6 commit 64181ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geofence.py
Expand Up @@ -84,7 +84,7 @@ def parse_geofence_spec(spec: str, infile: Path) -> Geofence:
elif token == 'poly':
shape = []
while (latstr := lexer.get_token()) != 'endpoly':
lat, lon = float(latstr), float(lexer.get_token)
lat, lon = float(latstr), float(lexer.get_token())
shape.append((lat, lon))
if len(shape) < 3:
print(f'Polygon should have >= 3 sides, got {len(shape)}.',
Expand Down

0 comments on commit 64181ae

Please sign in to comment.