mirror of
https://github.com/microsoft/graphrag.git
synced 2026-01-14 09:07:20 +08:00
Remove redundant code from error-handling code in GlobalSearch (#1170)
* remove a redundant retry * semver * formatting --------- Co-authored-by: Alonso Guevara <alonsog@microsoft.com>
This commit is contained in:
parent
16b4ea5dc9
commit
1dbcc42b81
@ -0,0 +1,4 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"description": "remove redundant error-handling code from global-search"
|
||||
}
|
||||
@ -219,15 +219,10 @@ class GlobalSearch(BaseSearch):
|
||||
# parse search response json
|
||||
processed_response = self.parse_search_response(search_response)
|
||||
except ValueError:
|
||||
# Clean up and retry parse
|
||||
try:
|
||||
# parse search response json
|
||||
processed_response = self.parse_search_response(search_response)
|
||||
except ValueError:
|
||||
log.warning(
|
||||
"Warning: Error parsing search response json - skipping this batch"
|
||||
)
|
||||
processed_response = []
|
||||
log.warning(
|
||||
"Warning: Error parsing search response json - skipping this batch"
|
||||
)
|
||||
processed_response = []
|
||||
|
||||
return SearchResult(
|
||||
response=processed_response,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user