mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-08 21:02:12 +02:00
Issue #870: query.split() on an empty or whitespace-only string returns an empty list, and accessing [0] raises IndexError. Although the existing startswith guard on line 205 already prevents this in practice (empty strings won't match SPARQL keywords), the direct indexing is fragile. Refactor to split first and check the result before indexing, making the code resilient to future refactoring of the upstream guard. |
||
|---|---|---|
| .. | ||
| trustgraph | ||
| pyproject.toml | ||
| README.md | ||