Bad error report trying to open a zip file
Closed this issue · 1 comments
davidmegginson commented
When libhxl tries to open a zip file that isn't an Excel spreadsheet or zipped CSV, it gives the meaningless error
TypeError: expected str, bytes or os.PathLike object, not NoneType
The error comes when the hxl.io.ExcelInput constructor attempts to call xlrd.open_workbook() with a non-Excel file, resulting in a null "filename" field inside the xlrd library.
Related to HXLStandard/hxl-proxy#274 reported by @SimonbJohnson
davidmegginson commented
Fixed. The error now indicates that it's an issue with a non-Excel zip file. See https://beta.proxy.hxlstandard.org/data/16313b