Skip to content

Commit

Permalink
GH-83: Fix error in error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-ueding committed Jan 14, 2024
1 parent 7251ef9 commit 6ca7b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo_activity_playground/core/activity_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def read_gpx_activity(path: pathlib.Path, open) -> pd.DataFrame:
try:
gpx = gpxpy.parse(content)
except UnicodeDecodeError as e:
logger.error(f"Cannot parse the following: {repr(f[:100])}")
logger.error(f"Cannot parse the following: {repr(content[:100])}")
raise

for track in gpx.tracks:
Expand Down

0 comments on commit 6ca7b4b

Please sign in to comment.