summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-05-23 16:27:38 -0400
committerPeter LaFosse <peter@vector35.com>2022-05-23 16:42:12 -0400
commite18983f13a9b1356096745e98928b58ca10852c0 (patch)
treede222389ce102c813db7765e9b68072a8c186267 /python
parenta8e650a8199577bfc5cbfb675a1150f47c569e54 (diff)
Esure parse_types api raise proper exceptions
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 2db75717..405afcc6 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -6203,7 +6203,7 @@ class BinaryView:
>>>
"""
if not isinstance(text, str):
- raise AttributeError("Source must be a string")
+ raise ValueError("Source must be a string")
parse = core.BNTypeParserResult()
try: