From 5ab915b6e1f5d3bc1a8f4cdb63cfd16ae84089ab Mon Sep 17 00:00:00 2001 From: Ramon Figueiredo Date: Wed, 16 Oct 2024 17:11:04 -0700 Subject: [PATCH] [cuegui] Fix TypeError in Comment viewer: Handle job object as iterable (#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. --- cuegui/cuegui/MenuActions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cuegui/cuegui/MenuActions.py b/cuegui/cuegui/MenuActions.py index 287b2eeeb..07f83063c 100644 --- a/cuegui/cuegui/MenuActions.py +++ b/cuegui/cuegui/MenuActions.py @@ -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"]