Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes case in which UI server returned the wrong type for empty data

elijahbenizzy3cd23ef78518
diff --git a/burr/tracking/server/backend.py b/burr/tracking/server/backend.py
index 7f7eeba0..5dcbc22d 100644
--- a/burr/tracking/server/backend.py
+++ b/burr/tracking/server/backend.py
@@ -244,7 +244,7 @@ class LocalBackend(BackendBase):
) -> Tuple[Sequence[ApplicationSummary], int]:
project_filepath = os.path.join(self.path, project_id)
if not os.path.exists(project_filepath):
- return []
+ return [], 0
# raise fastapi.HTTPException(status_code=404, detail=f"Project: {project_id} not found")
out = []
for entry in await aiofilesos.listdir(project_filepath):