SamR1/FitTrackee

Display relevant error message when `<time>` is missing in GPX file

Closed this issue · 7 comments

as in the title, ERROR - 'NoneType' object has no attribute 'tzinfo' appears in the logs when trying to import a .gpx file; not quite sure how to print the whole stacktrace

SamR1 commented

Hi,

is it possible to have an example of a GPX point (with the date, no need for coordinates)?
Thank you in advance.

ah, my gpx file doesn't include a date - just a list of <trkpt> elements inside <trkseg>

SamR1 commented

Hi,

FitTrackee only supports GPX files with <time>, in order to caculate speeds.
There are some tools allowing to add time infos like gpx.studio.

would it be possible to add some meaningful error message about it? or, i don't know, at least a note in the readme?

SamR1 commented

Yes I'll add it at least in the documentation.

thanks, then i guess this issue can be closed ( though seriously, the error message is really cryptic; there should at least be an option to show stacktraces for exceptions )

SamR1 commented

released in v0.7.15