From b4ccb82ea76b98457d9dc59424632ca412511ed4 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 15 Apr 2026 11:21:40 -0400 Subject: [Python API] Replace bare "except:" with "except Exception:" to fix signal propagation --- python/collaboration/examples/multitool.py | 2 +- python/collaboration/examples/upload_everything.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'python/collaboration/examples') diff --git a/python/collaboration/examples/multitool.py b/python/collaboration/examples/multitool.py index c1749773..eeb1e140 100644 --- a/python/collaboration/examples/multitool.py +++ b/python/collaboration/examples/multitool.py @@ -32,7 +32,7 @@ def print_remote_info(remote: Remote, extended=False): try: if not remote.is_connected: remote.connect() - except: + except Exception: pass if extended: print(f"Name: {remote.name}\n" diff --git a/python/collaboration/examples/upload_everything.py b/python/collaboration/examples/upload_everything.py index b6d638e7..83ab2a3d 100644 --- a/python/collaboration/examples/upload_everything.py +++ b/python/collaboration/examples/upload_everything.py @@ -107,7 +107,7 @@ def main(): with TqdmProgress(desc="", leave=False) as t: with binaryninja.load(file, update_analysis=False, progress_func=lambda cur, max: t.progress(cur, max)) as bv: project.upload_new_file(bv.file, folder, progress=lambda cur, max: t.progress(cur, max)) - except: + except Exception: tqdm.write(traceback.format_exc()) -- cgit v1.3.1