Closed jugmac00 closed 3 years ago
tnefparse/cmdline.py:68: error: "ValueError" has no attribute "message"
This is Python 2 code.
The fix is easy -> use str(e) instead. The test is a bit more elaborate - when there is no suitable test file.
str(e)
This bug was uncovered only now, as the line has no test coverage.
see https://github.com/koodaamo/tnefparse/blob/a9668efd84ecd0452436517e675bdf9654c2e8ba/tnefparse/cmdline.py#L64-L67
tnefparse/cmdline.py:68: error: "ValueError" has no attribute "message"
This is Python 2 code.
The fix is easy -> use
str(e)
instead. The test is a bit more elaborate - when there is no suitable test file.This bug was uncovered only now, as the line has no test coverage.
see https://github.com/koodaamo/tnefparse/blob/a9668efd84ecd0452436517e675bdf9654c2e8ba/tnefparse/cmdline.py#L64-L67