From df70e05b68cc3111b58ce1fa4e083f4e250c5ec9 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 17 Aug 2023 21:23:16 -0400 Subject: The load API now returns None for an invalid handle. --- python/binaryview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/binaryview.py b/python/binaryview.py index 4b1ca035..2de53d32 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -2317,7 +2317,7 @@ class BinaryView: handle = core.BNLoadBinaryView(raw_view.handle, update_analysis, progress_cfunc, metadata.Metadata(options).handle, False) else: raise NotImplementedError - return BinaryView(handle=handle) + return BinaryView(handle=handle) if handle else None @classmethod def _unregister(cls, view: core.BNBinaryView) -> None: -- cgit v1.3.1