ZhYQ1 commented on issue #166:
URL: https://github.com/apache/hugegraph-ai/issues/166#issuecomment-6711218078

   @imbajin Hi, I’ve found a set of unhandled exceptions and empty‑case bugs, 
and I’m reporting them here first without making any code changes.
   
   Critical ones that can crash the workflow:
   - hugegraph_utils.py L181–183: unsafe chained access to gremlin result, 
fails when the graph is empty
   - semantic_id_query.py L69: unsafe iteration over `resp["data"]`
   - merge_dedup_rerank.py L147: `list.index()` without existence check
   - merge_dedup_rerank.py L69–70: possible TypeError when adding None to a 
string
   - vector embedding query: IndexError if the embedding result is an empty list
   
   Other medium/low issues include unsafe key access, missing type checks 
before encoding, unpacking failures, and missing try‑except blocks for file 
parsing.
   
   I plan to fix them in small, separate PRs linked to #166 afterwards. Could 
you please assign this issue to me?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to