Skip to content

Conversation

@pglombardo
Copy link
Contributor

At boot, if the sys.modules dict changed while we were iterating it for snapshot data, it would put out a warning.

RuntimeError: dictionary changed size during iteration

This PR avoids getting that warning by making a copy of the dict and iterating the copy instead.

@pglombardo pglombardo merged commit 66e678e into master Oct 30, 2019
@pglombardo pglombardo deleted the fix-snapshot-dict-changed branch October 30, 2019 12:13
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