Skip to content
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

Creates empty .csv file for sheet not found #262

Open
billsker opened this issue Jul 19, 2023 · 0 comments
Open

Creates empty .csv file for sheet not found #262

billsker opened this issue Jul 19, 2023 · 0 comments

Comments

@billsker
Copy link

It seems, unless I'm interpreting this incorrectly, that

Xlsx2csv('file.xlsx',sheetid=4).convert(sheet4.csv,sheetid=4)

creates an empty csv file called "sheet4.csv" even if there is no sheet in the xlsx file with sheetid=4. It seems to create the file, THEN raise the exception.

The command-line version works as expected, and returns the "Sheet with index 4 not found or can't be handled" message without actually creating the sheet4.csv file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant