koodaamo / tnefparse

a TNEF decoding library written in python, without external dependencies
GNU Lesser General Public License v3.0
49 stars 37 forks source link

ValueError has no attribute message #82

Closed jugmac00 closed 3 years ago

jugmac00 commented 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.

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