diff options
| author | Nick Shipp <git@segbrk.com> | 2020-06-03 10:10:17 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2020-06-03 10:31:01 -0400 |
| commit | 89008b283bded62d1c3ffc6cec142c0cef487332 (patch) | |
| tree | 8828fe1cb3c4f31172680eb4f26f3020b8258d13 /python/examples/mappedview.py | |
| parent | 9104011c2ec3d2bdb0e6db6b2748f8ca04c64694 (diff) | |
Fix error handling in mappedview example
Diffstat (limited to 'python/examples/mappedview.py')
| -rw-r--r-- | python/examples/mappedview.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/examples/mappedview.py b/python/examples/mappedview.py index 11342c12..f14ebb80 100644 --- a/python/examples/mappedview.py +++ b/python/examples/mappedview.py @@ -23,7 +23,7 @@ # by the UI in the Open With Options dialog or headless when opening a # file with options. -from binaryninja import log +from binaryninja.log import log_error from binaryninja import _binaryninjacore as core from binaryninja.architecture import Architecture from binaryninja.binaryview import BinaryView @@ -31,6 +31,7 @@ from binaryninja.binaryview import BinaryViewType from binaryninja.enums import SegmentFlag from binaryninja import Settings import json +import traceback use_default_loader_settings = True @@ -58,7 +59,7 @@ class MappedView(BinaryView): load_settings = None if not use_default_loader_settings: # Create a new named Settings container for the load settings. - Settings("mapped_load_settings") + load_settings = Settings("mapped_load_settings") else: # Optionally, perform light-weight parsing of the 'Raw' BinaryView to extract required information for load settings generation. # This allows finer control of the settings provided as well as their default values. |
