From 48a3bb6542c20243d4e4c32a485de269985265aa Mon Sep 17 00:00:00 2001 From: vichayturen <1073931273@qq.com> Date: Wed, 18 Dec 2024 16:43:38 +0800 Subject: [PATCH] lint error --- .../src/hugegraph_llm/demo/rag_demo/text2gremlin_block.py | 2 +- .../src/hugegraph_llm/operators/hugegraph_op/gremlin_execute.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/text2gremlin_block.py b/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/text2gremlin_block.py index f8b62026..17cb6f02 100644 --- a/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/text2gremlin_block.py +++ b/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/text2gremlin_block.py @@ -126,7 +126,7 @@ def simple_schema(schema: Dict[str, Any]) -> Dict[str, Any]: def create_text2gremlin_block() -> Tuple: - gr.Markdown("""## Build Vector Template Index (Optional) + gr.Markdown("""## Build Vector Template Index (Optional) > Uploaded CSV file should be in `query,gremlin` format below: > e.g. `who is peter?`,`g.V().has('name', 'peter')` > JSON file should be in format below: diff --git a/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/gremlin_execute.py b/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/gremlin_execute.py index af217964..1ee5f646 100644 --- a/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/gremlin_execute.py +++ b/hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/gremlin_execute.py @@ -42,7 +42,7 @@ def run(self, context: Dict[str, Any]) -> Dict[str, Any]: if result == [None]: result = [] context["graph_result"] = [json.dumps(item, ensure_ascii=False) for item in result] - except Exception as e: + except Exception as e: # pylint: disable=broad-exception-caught log.error(e) if context.get("graph_result"):