Skip to content

Include a check for the index's size before trying to access it#1

Closed
avidadearthur wants to merge 1 commit into
masterfrom
headerData-patch-1
Closed

Include a check for the index's size before trying to access it#1
avidadearthur wants to merge 1 commit into
masterfrom
headerData-patch-1

Conversation

@avidadearthur

Copy link
Copy Markdown
Owner

I was trying to run the app with Python 3.11.4 and some actions like Import a .csv, clear and transpose a table would throw an IndexError.

The solution in the pull-request checks whether col is less than the length of the columns or the index, depending on the orientation, before trying to access the value. If col is out of bounds, it will simply return None, avoiding the IndexError.

This code checks whether col is less than the length of the columns or the index, depending on the orientation, before trying to access the value. If col is out of bounds, it will simply return None, avoiding the IndexError.
@dmnfarrell

Copy link
Copy Markdown

can you add this pull request to the original repo?

@avidadearthur

Copy link
Copy Markdown
Owner Author

Moved to dmnfarrell#13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants