summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py4
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: