Importing some tracks raise type error / Provide better feedback when import fails
Steps to reproduce
- Go to a Library.
- Open the "Upload" Tab.
- Select a folder in "Import music from your server"
- Press "Import"
What happens?
Some songs (47 out of over 3k) threw some type errors.
There was no additional stack trace in the docker-compose log
s (multi-container setup).
Not subscriptable seems to me that python tried to index into the file. Some files had the []
backets, but not all. (Would be worrying otherwise since that could mean potential code injection).
Has someone knowledge of why this error could be thrown? (It only did that for me for 47 out of above 3k songs. So I don't consider it a problem at all for me personally.)
What is expected?
Either no or a more meaningful or expected error. This seems more like a syntax error or a wrong type in the wrong place to me.
Context
Funkwhale version(s) affected: 1.0.1