Skip to content

Commit 95a15c2

Browse files
committed
Safely access the activation_method attribute
I don't know why this is happening, as we set it in __init__
1 parent 84f7006 commit 95a15c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticapm/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def get_service_info(self):
353353
"version": keyword_field(runtime_version),
354354
},
355355
}
356-
if self.activation_method:
356+
if getattr(self, "activation_method", None):
357357
result["agent"]["activation_method"] = self.activation_method
358358
if self.config.framework_name:
359359
result["framework"] = {

0 commit comments

Comments
 (0)