format_duration(None) raises an exception #25

Closed
opened 2023-01-09 15:13:29 +00:00 by lukas · 0 comments
Owner
 File "C:\Users\lukas\Documents\git\timetracker\src\web\tracker\models.py", line 41, in total_duration
    return format_duration(result["duration"])
  File "C:\Users\lukas\Documents\git\timetracker\src\web\common\util\time.py", line 26, in format_duration
    duration = timedelta(seconds=duration)
TypeError: unsupported type for timedelta seconds component: NoneType
``` File "C:\Users\lukas\Documents\git\timetracker\src\web\tracker\models.py", line 41, in total_duration return format_duration(result["duration"]) File "C:\Users\lukas\Documents\git\timetracker\src\web\common\util\time.py", line 26, in format_duration duration = timedelta(seconds=duration) TypeError: unsupported type for timedelta seconds component: NoneType ```
lukas added spent time 2023-01-09 15:13:35 +00:00
30 minutes
lukas closed this issue 2023-01-09 17:57:35 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 30 minutes
lukas
30 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lukas/timetracker#25
No description provided.