Skip to content

Commit 9f17f3d

Browse files
committed
fix: Start with an empty dict when package collection is enabled
Signed-off-by: Ferenc Géczi <[email protected]>
1 parent 654d979 commit 9f17f3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

instana/collector/helpers/runtime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def gather_python_packages(self):
204204
if os.environ.get('INSTANA_DISABLE_PYTHON_PACKAGE_COLLECTION'):
205205
return {'instana': VERSION}
206206

207+
versions = {}
207208
try:
208209
sys_packages = sys.modules.copy()
209210

0 commit comments

Comments
 (0)