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

using open_excel("inexisting file") yields ununderstandble error #265

Closed
gdementen opened this issue May 17, 2017 · 0 comments
Closed

using open_excel("inexisting file") yields ununderstandble error #265

gdementen opened this issue May 17, 2017 · 0 comments

Comments

@gdementen
Copy link
Contributor

The problem is that:

wb = open_excel("inexisting_file.xlsx")

does NOT fail, but rather creates a new blank workbook, and then:

toto = wb['my_sheet']

fails. That error is not understandable either, but I will open another issue for this.

The solution to the first problem is to add an argument to open_excel and only create a new workbook if explicitly asked for.

alixdamman added a commit to alixdamman/larray that referenced this issue May 22, 2017
… function + return an error if non existing Excel file and `new_file` not set to True.
alixdamman added a commit to alixdamman/larray that referenced this issue May 23, 2017
…nd `overwrite_file` set to False when creating a Workbook instance.

+ updated docstring of open_excel
alixdamman added a commit to alixdamman/larray that referenced this issue May 23, 2017
… return an error if non existing Excel file and mode is set to 'r' or 'r+'.

+ available modes are 'r', 'w', 'a' and 'r+'.
+ updated docstring of open_excel.
alixdamman added a commit to alixdamman/larray that referenced this issue May 24, 2017
… return an error if non existing Excel file and mode is set to 'r' or 'r+'.

+ available modes are 'r', 'w', 'a' and 'r+'.
+ updated docstring of open_excel.

(cherry picked from commit d5023a3)
alixdamman added a commit to alixdamman/larray that referenced this issue May 24, 2017
…if filepath represents a non existing Excel file and overwrite_file=False.

+ available modes are 'r', 'w', 'a' and 'r+'.
+ updated docstring of open_excel.
alixdamman added a commit to alixdamman/larray that referenced this issue May 24, 2017
…if filepath represents a non existing Excel file and overwrite_file=False.

+ available modes are 'r', 'w', 'a' and 'r+'.
+ updated docstring of open_excel.
@gdementen gdementen modified the milestone: 0.23 May 30, 2017
alixdamman added a commit to alixdamman/larray that referenced this issue Sep 6, 2017
… return an error if non existing Excel file and mode is set to 'r' or 'r+'.

+ available modes are 'r', 'w', 'a' and 'r+'.
+ updated docstring of open_excel.

(cherry picked from commit d5023a3)
gdementen pushed a commit that referenced this issue Aug 31, 2018
…presents a non existing Excel file and overwrite_file=False.

+ available modes are 'r', 'w', 'a' and 'r+'.
+ updated docstring of open_excel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants