Skip to content

Commit

Permalink
fixed GUI crash when a date is missing (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed Jan 18, 2023
1 parent e42aad3 commit d0685c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/soma_workflow/gui/workflowGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5286,9 +5286,11 @@ def updateState(self):
if item.serial_duration:
self.theoretical_serial_time \
= self.theoretical_serial_time + item.serial_duration
if item.ending_date > self.last_end_date:
if item.ending_date is not None \
and item.ending_date > self.last_end_date:
self.last_end_date = item.ending_date
if item.submission_date and item.submission_date < self.first_sub_date:
if item.submission_date \
and item.submission_date < self.first_sub_date:
self.first_sub_date = item.submission_date

if isinstance(item, GuiGroup):
Expand Down

0 comments on commit d0685c8

Please sign in to comment.