Skip to content

Commit 989ac7c

Browse files
committed
except
1 parent 52deb74 commit 989ac7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphiti_core/utils/maintenance/node_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ async def extract_nodes(
167167
entity_classifications = llm_response.get('entity_classifications', [])
168168
node_classifications.update(dict(zip(entities, entity_classifications)))
169169
# catch classification errors and continue if we can't classify
170-
finally:
171-
logger.error(f'Failed to classify nodes: {extracted_node_names}')
170+
except Exception as e:
171+
logger.error(f'Failed to classify nodes: {extracted_node_names} with error: {e}')
172172

173173
end = time()
174174
logger.debug(f'Extracted new nodes: {extracted_node_names} in {(end - start) * 1000} ms')

0 commit comments

Comments
 (0)