From fbfd20e7908da4545349a71d166878e2d13a1ed7 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Fri, 22 Jul 2016 16:15:02 +0200 Subject: [PATCH] fixed bug that caused infinite recursion in str(UnexpectedDataError) --- oletools/olevba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index bfde3ad..1dafcb5 100755 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -358,7 +358,7 @@ class UnexpectedDataError(OlevbaBaseException): """ raised when parsing is strict (=not relaxed) and data is unexpected """ def __init__(self, stream_path, variable, expected, value): - super(UnexpectedDataError, self).__init__(self, + super(UnexpectedDataError, self).__init__( 'Unexpected value in {0} for variable {1}: ' 'expected {2:04X} but found {3:04X}!' .format(stream_path, variable, expected, value)) -- libgit2 0.21.4