Misleading error message when passing non-existent filename
See original GitHub issueSteps to reproduce: Run xlsx2csv, passing it a non-existent filename as an argument
Expected result: Error message stating that the file does not exist
Actual result: Error message saying:
Invalid xlsx file: (filename)
Exception AttributeError: "Xlsx2csv instance has no attribute 'ziphandle'" in <bound method Xlsx2csv.__del__ of <__main__.Xlsx2csv instance at 0x02BD9940>> ignored
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:8
Top Results From Across the Web
You receive an error message when you save a file after the ...
Microsoft Excel cannot access the file 'Network path'. You may receive this error message for the following reasons: The file name or path...
Read more >How to Handle the FileNotFoundException in C# | Rollbar
The FileNotFoundException occurs in C# when the system is unable to locate a file when the program is executed. Learn how to handle...
Read more >Files and Exceptions in Python - Section.io
This tutorial will teach us how to work with files and exceptions in Python. We will look at how perform read, write, and...
Read more >Java says FileNotFoundException but file exists - Stack Overflow
The named file does not exist. This could be for a number of reasons including: The pathname is simply wrong · The named...
Read more >Writing tests - bats-core's documentation! - Read the Docs
For example, let's say you're testing that the foo command, when passed a nonexistent filename, exits with a 1 status code and prints...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Interesting… I got the same error when attempting to convert an old
xls
not anxlsx
I got the same error when I did a mistake in script and called xlsx2csv on file.xlsx.xlsx instead of file.xlsx … took me a moment to notice the difference … anyway, saying the file doesn’t exists would be clearer.