From e18983f13a9b1356096745e98928b58ca10852c0 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 23 May 2022 16:27:38 -0400 Subject: Esure parse_types api raise proper exceptions --- python/binaryview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/binaryview.py') 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: -- cgit v1.3.1