Skip to content

Commit

Permalink
Properly handle empty groups in CueMonitorTree. (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares committed Aug 4, 2020
1 parent c46d829 commit 4c9e004
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cuegui/cuegui/CueJobMonitorTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,10 @@ def __getNestedIds(self, group):
updated.append(group.id)

# If group has groups, recursively call this function
updated.extend(map(self.__getNestedIds, group.groups.nested_groups))
for g in group.groups.nested_groups:
updated_g = self.__getNestedIds(g)
if updated_g:
updated.extend(updated_g)

# If group has jobs, update them
for jobId in group.jobs:
Expand Down

0 comments on commit 4c9e004

Please sign in to comment.