Skip to content

Commit

Permalink
[cuegui] Fix TypeError in Comment viewer: Handle job object as iterab…
Browse files Browse the repository at this point in the history
…le (AcademySoftwareFoundation#1542)

- Updated `viewComments` method in `MenuActions.py` to wrap single Job
objects in a list.
- This prevents `TypeError` when attempting to iterate over a
non-iterable Job object.
  • Loading branch information
ramonfigueiredo authored Oct 17, 2024
1 parent 0f2c98f commit 5ab915b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cuegui/cuegui/MenuActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ def dropInternalDependencies(self, rpcObjects=None):
def viewComments(self, rpcObjects=None):
jobs = self._getOnlyJobObjects(rpcObjects)
if jobs:
if not isinstance(jobs, list):
jobs = [jobs]
cuegui.Comments.CommentListDialog(jobs, self._caller).show()

dependWizard_info = ["Dependency &Wizard...", None, "configure"]
Expand Down

0 comments on commit 5ab915b

Please sign in to comment.