We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75b596e + 0885d15 commit 46a2651Copy full SHA for 46a2651
instana/meter.py
@@ -195,13 +195,17 @@ def collect_modules(self):
195
r = {}
196
for k in m:
197
if m[k]:
198
- d = m[k].__dict__
199
- if "version" in d and d["version"]:
200
- r[k] = self.jsonable(d["version"])
201
- elif "__version__" in d and d["__version__"]:
202
- r[k] = self.jsonable(d["__version__"])
203
- else:
204
- r[k] = "builtin"
+ try:
+ d = m[k].__dict__
+ if "version" in d and d["version"]:
+ r[k] = self.jsonable(d["version"])
+ elif "__version__" in d and d["__version__"]:
+ r[k] = self.jsonable(d["__version__"])
+ else:
205
+ r[k] = "builtin"
206
+ except Exception as e:
207
+ r[k] = "unknown"
208
+ l.error("collect_modules: could not process module ", k, str(e))
209
210
return r
211
except Exception as e:
0 commit comments