diff --git a/gimp/agent-harness/cli_anything/gimp/gimp_cli.py b/gimp/agent-harness/cli_anything/gimp/gimp_cli.py index 1ad6501196..e73cccdb51 100644 --- a/gimp/agent-harness/cli_anything/gimp/gimp_cli.py +++ b/gimp/agent-harness/cli_anything/gimp/gimp_cli.py @@ -758,7 +758,7 @@ def repl(project_path): if sess.has_project(): p = sess.get_project() proj_name = p.get("name", "") if isinstance(p, dict) else "" - except Exception: + except Exception as e: proj_name = "" line = skin.get_input(pt_session, project_name=proj_name, modified=False) diff --git a/inkscape/agent-harness/cli_anything/inkscape/inkscape_cli.py b/inkscape/agent-harness/cli_anything/inkscape/inkscape_cli.py index 6caf625a44..b2a15941ad 100644 --- a/inkscape/agent-harness/cli_anything/inkscape/inkscape_cli.py +++ b/inkscape/agent-harness/cli_anything/inkscape/inkscape_cli.py @@ -989,7 +989,7 @@ def _current_project_name(): s = get_session() if s.has_project(): return s.project_path or "untitled" - except Exception: + except Exception as e: pass return "" diff --git a/libreoffice/agent-harness/cli_anything/libreoffice/libreoffice_cli.py b/libreoffice/agent-harness/cli_anything/libreoffice/libreoffice_cli.py index 8f9781d2d0..2cd8dd2a9b 100644 --- a/libreoffice/agent-harness/cli_anything/libreoffice/libreoffice_cli.py +++ b/libreoffice/agent-harness/cli_anything/libreoffice/libreoffice_cli.py @@ -676,7 +676,7 @@ def _get_project_name(): proj = s.get_project() if proj and isinstance(proj, dict): return proj.get("name", "") - except Exception: + except Exception as e: pass return "" @@ -684,7 +684,7 @@ def _is_modified(): try: s = get_session() return s.is_modified() if hasattr(s, "is_modified") else False - except Exception: + except Exception as e: return False while True: diff --git a/obs-studio/agent-harness/cli_anything/obs_studio/obs_studio_cli.py b/obs-studio/agent-harness/cli_anything/obs_studio/obs_studio_cli.py index 727f32d5d3..a5a154c734 100644 --- a/obs-studio/agent-harness/cli_anything/obs_studio/obs_studio_cli.py +++ b/obs-studio/agent-harness/cli_anything/obs_studio/obs_studio_cli.py @@ -780,7 +780,7 @@ def _get_project_name(): if sess.has_project(): info = proj_mod.get_project_info(sess.get_project()) return info.get("name", "") - except Exception: + except Exception as e: pass return "" diff --git a/shotcut/agent-harness/workflow_demo.py b/shotcut/agent-harness/workflow_demo.py index 1f58db104a..3161fcd26f 100644 --- a/shotcut/agent-harness/workflow_demo.py +++ b/shotcut/agent-harness/workflow_demo.py @@ -150,7 +150,7 @@ def main(): try: f = filt_mod.list_filters(session, track["index"], c["clip_index"]) filter_count += len(f) - except Exception: + except Exception as e: pass print(f" Track {track['index']} [{track['type'][0].upper()}] {name}: " f"{clip_count} clips, {filter_count} filters") diff --git a/zoom/agent-harness/cli_anything/zoom/core/auth.py b/zoom/agent-harness/cli_anything/zoom/core/auth.py index 5c911bbe2b..490ad0cd27 100644 --- a/zoom/agent-harness/cli_anything/zoom/core/auth.py +++ b/zoom/agent-harness/cli_anything/zoom/core/auth.py @@ -134,7 +134,7 @@ def log_message(self, format, *args): "name": f"{user.get('first_name', '')} {user.get('last_name', '')}".strip(), "account_id": user.get("account_id", ""), } - except Exception: + except Exception as e: return { "status": "logged_in", "message": "Tokens saved. Could not verify user info.", @@ -171,7 +171,7 @@ def login_with_code(code: str) -> dict: "user": user.get("email", "unknown"), "name": f"{user.get('first_name', '')} {user.get('last_name', '')}".strip(), } - except Exception: + except Exception as e: return {"status": "logged_in", "message": "Tokens saved."} diff --git a/zoom/agent-harness/cli_anything/zoom/zoom_cli.py b/zoom/agent-harness/cli_anything/zoom/zoom_cli.py index 66ed558bb8..f501471461 100644 --- a/zoom/agent-harness/cli_anything/zoom/zoom_cli.py +++ b/zoom/agent-harness/cli_anything/zoom/zoom_cli.py @@ -464,7 +464,7 @@ def repl(): skin.warning("OAuth configured but not logged in. Run: auth login") else: skin.info("Not configured. Run: auth setup --client-id --client-secret ") - except Exception: + except Exception as e: skin.info("Run 'auth setup' to configure OAuth credentials.") while True: @@ -473,7 +473,7 @@ def repl(): try: status = auth_mod.get_auth_status() context = status.get("user", "") if status.get("authenticated") else "" - except Exception: + except Exception as e: context = "" line = skin.get_input(pt_session, context=context)