diff options
| author | Brian Potchik <brian@vector35.com> | 2020-10-15 17:51:31 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2020-10-15 17:51:31 -0400 |
| commit | 84230e606e8de3f7c01aa9006c7f14caf25c5c49 (patch) | |
| tree | 5107b3a0975b8524e14a07aa2a575f9a86d90df2 /python | |
| parent | cbe3ded641a0ce4b50ae447a4426b71f3e0f0119 (diff) | |
Cleanup load options when choosing to not open specific BinaryView types during open with options.
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 7e893ab2..b7f5b745 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -5481,7 +5481,9 @@ class BinaryView(object): :param Settings settings: the load settings :rtype: None """ - core.BNBinaryViewSetLoadSettings(self.handle, type_name, settings.handle) + if settings is not None: + settings = settings.handle + core.BNBinaryViewSetLoadSettings(self.handle, type_name, settings) def __setattr__(self, name, value): try: |
