diff options
| author | Josh Ferrell <josh@vector35.com> | 2026-04-15 11:21:40 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2026-04-15 11:21:44 -0400 |
| commit | b4ccb82ea76b98457d9dc59424632ca412511ed4 (patch) | |
| tree | 2eb4d7875181cee7b05413fa6dcdaea3a1d95981 /python/debuginfo.py | |
| parent | c08cf3f1eaa73a5171c27044100479998104d58a (diff) | |
[Python API] Replace bare "except:" with "except Exception:" to fix signal propagation
Diffstat (limited to 'python/debuginfo.py')
| -rw-r--r-- | python/debuginfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
