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/debuginfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/debuginfo.py') diff --git a/python/debuginfo.py b/python/debuginfo.py index abdb4be5..ec676b7e 100644 --- a/python/debuginfo.py +++ b/python/debuginfo.py @@ -119,7 +119,7 @@ class _DebugInfoParserMetaClass(type): file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view)) view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view)) return callback(view_obj) - except: + except Exception: log_error_for_exception("Unhandled Python exception in _DebugInfoParserMetaClass._is_valid") return False @@ -136,7 +136,7 @@ class _DebugInfoParserMetaClass(type): parser_ref = core.BNNewDebugInfoReference(debug_info) assert parser_ref is not None, "core.BNNewDebugInfoReference returned None" return callback(DebugInfo(parser_ref), view_obj, debug_view_obj, progress) - except: + except Exception: log_error_for_exception("Unhandled Python exception in _DebugInfoParserMetaClass._parse_info") return False -- cgit v1.3.1