You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Pedro,
we cannot simply overwrite the inference of file type.
For example, we have an excel file but with the extension '.csv', if we pass the file_type="xlsx" to pyexcel_xlsx.get_data(), it will throw an exception. And I've checked the source code of pyexcel-xlsx, pyexcel automatically infer the file type based on extension, and in the documentation: file_type – used only when filename is not a physial file name (means only use it when the file we wanna open is a stream file)
So, possible solution would be:
check the file extension and the passed 'file_type', if they don't match, throw an exception.
No description provided.
The text was updated successfully, but these errors were encountered: