From 84230e606e8de3f7c01aa9006c7f14caf25c5c49 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 15 Oct 2020 17:51:31 -0400 Subject: Cleanup load options when choosing to not open specific BinaryView types during open with options. --- python/binaryview.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python') 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: -- cgit v1.3.1