Skip to content

Commit

Permalink
fix: handle insane case with route with no points
Browse files Browse the repository at this point in the history
  • Loading branch information
pleasantone committed Jul 3, 2024
1 parent 5f7b14d commit 7b820dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gpxtable/gpxtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ def _rpe() -> str:
print(f"* {route.description}", file=self.output)

print(self._format_output_header(), file=self.output)
if not route.points:
continue
dist = 0.0
previous = route.points[0].latitude, route.points[0].longitude
last_gas = 0.0
Expand Down

0 comments on commit 7b820dd

Please sign in to comment.