Skip to content

Conversation

@qixinbo
Copy link
Member

@qixinbo qixinbo commented Aug 29, 2019

Description:

When there is only one toolbar file folder, the origin code will cause an error:
add_tools(toolsbar, datas[1][1][1])
IndexError: list index out of range

So here adding one line to detect the length of the tuple of "datas":
if len(datas[1]) > 1:

@yxdragon yxdragon merged commit 02f9360 into Image-Py:master Sep 14, 2019
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

Successfully merging this pull request may close these issues.

2 participants