Commit fbfd20e7908da4545349a71d166878e2d13a1ed7
1 parent
44ec0bd8
fixed bug that caused infinite recursion in str(UnexpectedDataError)
(may be related to Issue #66 on github)
Showing
1 changed file
with
1 additions
and
1 deletions
oletools/olevba.py
| ... | ... | @@ -358,7 +358,7 @@ class UnexpectedDataError(OlevbaBaseException): |
| 358 | 358 | """ raised when parsing is strict (=not relaxed) and data is unexpected """ |
| 359 | 359 | |
| 360 | 360 | def __init__(self, stream_path, variable, expected, value): |
| 361 | - super(UnexpectedDataError, self).__init__(self, | |
| 361 | + super(UnexpectedDataError, self).__init__( | |
| 362 | 362 | 'Unexpected value in {0} for variable {1}: ' |
| 363 | 363 | 'expected {2:04X} but found {3:04X}!' |
| 364 | 364 | .format(stream_path, variable, expected, value)) | ... | ... |