From 6f863df807afdd111017a92cfc15c6f6a0d79310 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 30 Apr 2020 03:11:31 -0400 Subject: fixes #1628 --- 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 c110dc7d..61500f06 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3519,7 +3519,7 @@ class BinaryView(object): elif not isinstance(plat, binaryninja.platform.Platform): raise AttributeError("Provided platform is not of type `binaryninja.platform.Platform`") - if isinstance(sym_type, binaryninja.SymbolType): + if isinstance(sym_type, binaryninja.Type): sym_type = sym_type.handle elif sym_type is not None: raise AttributeError("Provided sym_type is not of type `binaryninja.SymbolType`") -- cgit v1.3.1