vstinner / hachoir

Hachoir is a Python library to view and edit a binary stream field by field
http://hachoir.readthedocs.io/
GNU General Public License v2.0
604 stars 70 forks source link

fix bytes concat on repair #62

Closed cccs-rs closed 3 years ago

cccs-rs commented 3 years ago

Original code would yield a: "[err!]: Unable to create value: can't concat str to bytes" which would subsequently lead to a: "[err!]: Error during metadata extraction: 'NoneType' object has no attribute 'strip'" and rightfully so.

This will resolve that error 😁

vstinner commented 3 years ago

Merged, thanks. It would be great to have an unit test for that.