Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gimp/agent-harness/cli_anything/gimp/core/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def add_from_file(
from PIL import Image
with Image.open(path) as img:
w, h = img.size
except Exception:
except Exception as e:
w = project["canvas"]["width"]
h = project["canvas"]["height"]

Expand Down
2 changes: 1 addition & 1 deletion gimp/agent-harness/cli_anything/gimp/gimp_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,15 +676,15 @@ 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 ""
Comment on lines +679 to 681

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
Comment on lines +687 to 688

while True:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down
2 changes: 1 addition & 1 deletion shotcut/agent-harness/workflow_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions zoom/agent-harness/cli_anything/zoom/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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."}


Expand Down
4 changes: 2 additions & 2 deletions zoom/agent-harness/cli_anything/zoom/zoom_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ID> --client-secret <SECRET>")
except Exception:
except Exception as e:
skin.info("Run 'auth setup' to configure OAuth credentials.")
Comment on lines +467 to 468

while True:
Expand All @@ -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 = ""
Comment on lines +476 to 477

line = skin.get_input(pt_session, context=context)
Expand Down
Loading