Skip to content

Commit

Permalink
Fix TypeError in Comment Viewer by ensuring Job object is handled as …
Browse files Browse the repository at this point in the history
…iterable

- 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 committed Oct 16, 2024
1 parent 0f2c98f commit 69cb4b0
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 69cb4b0

Please sign in to comment.