fix(wiki): singleByPath 미존재 페이지 에러 처리 + 설계서 v5 업데이트

- wiki_client.py: find_page()에서 'does not exist' 에러를 None으로 처리
- wiki_debate.py: 동일 에러 처리 추가
- docs/design/debate-room-v2.md: v5 Wiki.js 분산 아키텍처로 전면 개편
This commit is contained in:
2026-03-21 21:01:13 +09:00
parent cbc9db0439
commit 4352a6a5f9
4 changed files with 108 additions and 118 deletions

View File

@@ -119,7 +119,13 @@ class WikiClient:
}}
}
"""
data = await self._query(query, {"path": path})
try:
data = await self._query(query, {"path": path})
except RuntimeError as e:
# singleByPath는 페이지 미존재 시 GraphQL error 반환
if "does not exist" in str(e).lower():
return None
raise
p = data.get("pages", {}).get("singleByPath")
if not p:
return None