Skip to content

Commit 66e678e

Browse files
authored
Avoid dict changed warning by copying (#195)
1 parent 2f30736 commit 66e678e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instana/meter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def collect_modules(self):
342342
""" Collect up the list of modules in use """
343343
try:
344344
res = {}
345-
m = sys.modules
345+
m = sys.modules.copy()
346346
for k in m:
347347
# Don't report submodules (e.g. django.x, django.y, django.z)
348348
# Skip modules that begin with underscore

0 commit comments

Comments
 (0)