Skip to content

Commit

Permalink
Iterate through dict copy since the size of original is changed durin…
Browse files Browse the repository at this point in the history
…g iteration
  • Loading branch information
Bruce Lai committed Nov 20, 2019
1 parent 7847516 commit a26be84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ait/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def create(*args, **kwargs):

extensions = ait.config.get('extensions', None)

for clsname, cls in modsyms.items():
for clsname, cls in modsyms.copy().items():
if not isinstance(cls, type):
continue

Expand Down

0 comments on commit a26be84

Please sign in to comment.