Closed mdemoret-nv closed 11 months ago
I agree that this seems safe, but would like confirmation from one more dev just in case there's a use case I'm missing.
~@mdemoret-nv Can you share an example file where this failed (minimized is best), and also the full error output you got with the UnicodeDecodeError
?~
I was able to reproduce this by attempting to read a Linux executable (or shared library, or similar binary).
Discussed with @vyasr and this seems like a reasonable fix. I found a way to reproduce this locally, so we're good to merge once my suggestion is applied.
Committed. Thanks!
:tada: This PR is included in version 1.7.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This fix prevents a crash when using
--clean
on a repo where a file contains non-unicode characters. Fix seems benign since any file with non-unicode characters likely wasnt created by this tool.Closes #58