Tags: patch

It seems that at least one of your gpx file (in ~/.pytrainer/gpx/) has his time 
tag with no value.
As a workaround, you could add a value like 2008-08-22T13:14:25Z , it should 
allow you to see the record.

That said, this is indeed a bug.
pytrainer calls dateutil.parser.parse(time_) (in pytrainer/lib/date.py, 
function getDateTime) even if time_ is empty.
dateutil.parser.parse(None) raises an AttributeError.
The pytrainer code has exception handling for ValueError only, so it fails to 
catch this case.

Should dateutil.parser.parse checks for None values and raise a ValueError 
(instead of an AttributeError) or should pytrainer do the check?
The answer may be both.

I have joined a patch to do the check in pytrainer.

Attachment: debbug_622170.patch
Description: Binary data

Reply via email to