Skip to content

Commit 2df3517

Browse files
authored
Snapshot Collection: Protect against unknown exceptions (#246)
1 parent 35cb914 commit 2df3517

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

instana/meter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,10 @@ def collect_snapshot(self):
247247
def jsonable(self, value):
248248
try:
249249
if callable(value):
250-
result = value()
250+
try:
251+
result = value()
252+
except:
253+
result = 'Unknown'
251254
elif type(value) is ModuleType:
252255
result = value
253256
else:

0 commit comments

Comments
 (0)