Skip to content

Commit 4abe789

Browse files
author
Willi Ballenthin
committed
nodes: raise real parse exception
1 parent 397be71 commit 4abe789

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Evtx/Nodes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,8 +1611,7 @@ def string(self):
16111611
for _ in range(len(frag) // 2):
16121612
acc.append("<string></string>\n")
16131613
else:
1614-
# TODO: raise a real exception type here
1615-
raise RuntimeError("Error parsing uneven substring of NULLs")
1614+
raise ParseException("Error parsing uneven substring of NULLs")
16161615
bin = bin[len(frag):]
16171616
return "".join(acc)
16181617

0 commit comments

Comments
 (0)