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/examples/triage | |
| parent | c08cf3f1eaa73a5171c27044100479998104d58a (diff) | |
[Python API] Replace bare "except:" with "except Exception:" to fix signal propagation
Diffstat (limited to 'python/examples/triage')
| -rw-r--r-- | python/examples/triage/byte.py | 2 | ||||
| -rw-r--r-- | python/examples/triage/view.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/triage/byte.py b/python/examples/triage/byte.py index 13e5d153..23e30c57 100644 --- a/python/examples/triage/byte.py +++ b/python/examples/triage/byte.py @@ -9,7 +9,7 @@ from binaryninjaui import View, ViewType, RenderContext, UIContext, UIAction from binaryninja.enums import LinearDisassemblyLineType, ThemeColor try: from binaryninja.binaryview import AddressRange -except: +except Exception: from binaryninja.function import AddressRange diff --git a/python/examples/triage/view.py b/python/examples/triage/view.py index 28a99a75..3a8b0e02 100644 --- a/python/examples/triage/view.py +++ b/python/examples/triage/view.py @@ -48,7 +48,7 @@ class TriageView(QScrollArea, View): hdr = headers.PEHeaders(self.data) elif self.data.view_type != "Raw": hdr = headers.GenericHeaders(self.data) - except: + except Exception: log.log_error(traceback.format_exc()) if hdr is not None: |
