format_duration(None) raises an exception #25
lukas
commented 2023-01-09 15:13:29 +00:00
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
```
lukas
added spent time 2023-01-09 15:13:35 +00:00
30 minutes
lukas
referenced this issue from a commit 2023-01-09 17:57:35 +00:00
Avoid raising exception on format_duration(None)
lukas
closed this issue 2023-01-09 17:57:35 +00:00
lukas
referenced this issue from a commit 2023-01-09 17:57:35 +00:00
Show playtime total on session list
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?