diff --git a/instana/meter.py b/instana/meter.py index f8e67df0..279bfb94 100644 --- a/instana/meter.py +++ b/instana/meter.py @@ -342,7 +342,7 @@ def collect_modules(self): """ Collect up the list of modules in use """ try: res = {} - m = sys.modules + m = sys.modules.copy() for k in m: # Don't report submodules (e.g. django.x, django.y, django.z) # Skip modules that begin with underscore