-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with non-text files #30
Comments
I don't understand this. What targeted directory are we talking about here can you show me an example? |
The targeted directory is an addon directory, in OSX, the OS creates a |
Are you saying there is a file in the addon directory, .DS_Store, that is a binary file, and it causes a crash? I don't have access to a osx machine, I'll try and replicate on linux. |
Exactly. Maybe you can reproduce it with any compiled file or a picture. |
I got this as well - if I have a non-Unicode or binary file in the addon and the tester tries to read it, it crashes due to the Unicode error. My case is an *.odp file, but there's been leftover pycache's that don't get deleted and also crash. |
I modified the code to skip this check. Maybe we could have an option to skip it. |
In the function
clean_file
if there is a non-text file in the targeted directory, I get aUnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3131: invalid start byte
(in my case it's for a.DS_Store
OSX file). I also had the issue with image files.I don't get what this function is supposed to do and if this issue is actually critical.
The text was updated successfully, but these errors were encountered: