From a26be84ccfaa0a37b0b3c4fb6a1d15e865d6fb82 Mon Sep 17 00:00:00 2001 From: Bruce Lai Date: Thu, 5 Sep 2019 11:31:45 -0700 Subject: [PATCH] Iterate through dict copy since the size of original is changed during iteration --- ait/core/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ait/core/util.py b/ait/core/util.py index 24ec9979..e8c79c37 100755 --- a/ait/core/util.py +++ b/ait/core/util.py @@ -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