fixed the CI build errors

This commit is contained in:
Willem Jiang
2026-04-28 19:01:36 +08:00
parent 844ad8e528
commit 64f4dc1639
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -244,7 +244,8 @@ async def get_custom_skill_history(skill_name: str, config: AppConfig = Depends(
except HTTPException:
raise
except Exception as e:
logger.error("Failed to read history for %s: %s", skill_name, e, exc_info=True)
name = skill_name.replace("\r\n", "").replace("\n", "")
logger.error("Failed to read history for %s: %s", name, e, exc_info=True)
raise HTTPException(status_code=500, detail=f"Failed to read history: {str(e)}")