mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-28 12:48:40 +00:00
fixed the CI build errors
This commit is contained in:
parent
844ad8e528
commit
64f4dc1639
@ -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)}")
|
||||
|
||||
|
||||
|
||||
@ -41,8 +41,8 @@ def _make_test_app(config) -> FastAPI:
|
||||
app.state.config = config
|
||||
app.include_router(skills_router.router)
|
||||
return app
|
||||
|
||||
|
||||
|
||||
|
||||
def _make_skill_archive(tmp_path: Path, name: str, content: str | None = None) -> Path:
|
||||
archive = tmp_path / f"{name}.skill"
|
||||
skill_content = content or _skill_content(name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user