Skip to content

Commit f21d5a4

Browse files
authored
🐛 Fix TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType' (#2229)
2 parents 26d468d + 2f91c23 commit f21d5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CPAC/utils/monitoring/draw_gantt_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def generate_gantt_chart(
401401
return
402402

403403
for node in nodes_list:
404-
if "duration" not in node:
404+
if "duration" not in node and (node["start"] and node["finish"]):
405405
node["duration"] = (node["finish"] - node["start"]).total_seconds()
406406

407407
# Create the header of the report with useful information

0 commit comments

Comments
 (0)