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

Fix crash from deleting keys while iterating over dict in hud_panel() #913

Merged
merged 1 commit into from Feb 10, 2019

Conversation

Projects
None yet
2 participants
@y0ssar1an
Copy link
Contributor

y0ssar1an commented Feb 9, 2019

Resolves #912

The RuntimeError was caused by deleting keys from a dict while iterating over it. That's not allowed. The fix is to copy the dict keys to a list and iterate over that instead.

@DisposaBoy

This comment has been minimized.

Copy link
Owner

DisposaBoy commented Feb 10, 2019

Thanks!

@DisposaBoy DisposaBoy merged commit 99d577a into DisposaBoy:development Feb 10, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment