Bug #75568
dataviz: erreur dans format_duration (TypeError: unsupported type for timedelta seconds component: NoneType)
Status:
Nouveau
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
17 March 2023
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/108279/
TypeError: unsupported type for timedelta seconds component: NoneType (7 additional frame(s) were not displayed) ... File "pygal/graph/public.py", line 74, in render_table return Table(self).render(**kwargs) File "pygal/table.py", line 95, in render row.append(self.chart._format(serie, j)) File "pygal/graph/graph.py", line 615, in _format return formatter(value, **kwargs) File "pygal/graph/graph.py", line 596, in _value_format return self._y_format(value) File "combo/apps/dataviz/models.py", line 656, in format_duration return timesince(base_date, base_date + timedelta(seconds=value))