Open stuaxo opened 4 years ago
Interesting that this has not been fixed yet - this is one of the most common errors, and the current way it's reported is not ideal:
InvalidXlsxFileException: Invalid xlsx file:
/Users/corneliusromer/code/nextclade_data_workflows/rsv/clades/aminoa-acid-genotypes.xlsx
Exception ignored in: <function Xlsx2csv.__del__ at 0x1040696c0>
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniforge/base/envs/py11/lib/python3.11/site-packages/xlsx2csv.py", line 219, in __del__
self.ziphandle.close()
^^^^^^^^^^^^^^
AttributeError: 'Xlsx2csv' object has no attribute 'ziphandle'
When the file passed in does not exist xlsx2csv should handle this by displaying a message.
(This should also not break things like piping in the output).
Current output when I accidentally wrote
import_sheet
instead of passing in a file that exists: