-
Notifications
You must be signed in to change notification settings - Fork 0
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
What is utils.get_text_from_blob param with_encoding meant to do? #276
Comments
The first use is within a The original function without the The flow-control of clean.clean_invalid_documents calls |
But it only calls continue on a second error - where utils.get_text_from_blob crashes.
|
Yes, that sounds correct. So the code could be updated to something like this to work as expected like this:
|
The first use inside the function makes it return the content as bytes, and assuming 'utf-8'
The second use inside the function returns back to the user the charset used, but surely because of the first use the second use is never called?
The only time the function is actually called with the param set to True is in an error handler of clean.clean_invalid_documents and I don't understand that error handler, as it could end up leaving iati_activities_el undefined and then the very next line tries to use that variable.
b011174 adds both uses
The text was updated successfully, but these errors were encountered: