fix: add check for variable value before calling method (#3868)

This commit is contained in:
Ítalo Johnny 2024-09-20 17:52:41 -03:00 committed by GitHub
commit 48676b0cbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -556,7 +556,8 @@ class Graph:
self.tracing_service.set_run_name(name)
async def initialize_run(self):
await self.tracing_service.initialize_tracers()
if self.tracing_service:
await self.tracing_service.initialize_tracers()
async def end_all_traces(self, outputs: dict[str, Any] | None = None, error: Exception | None = None):
if not self.tracing_service: