Skip to content

Commit 1950fc7

Browse files
Fix for Empty except (#6)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 3061219 commit 1950fc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/holiday_peak_lib/agents/foundry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ async def _invoke(self, client: AIProjectClient, **kwargs) -> dict[str, Any]:
177177
or 0,
178178
)
179179
except TypeError:
180+
# Some history entries may not be comparable / lack a usable created_at;
181+
# if sorting fails, fall back to the original order.
180182
pass
181183
telemetry = {
182184
"endpoint": self.config.endpoint,

0 commit comments

Comments
 (0)