Skip to content

Commit

Permalink
except
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen15 committed Feb 28, 2025
1 parent 52deb74 commit 989ac7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphiti_core/utils/maintenance/node_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ async def extract_nodes(
entity_classifications = llm_response.get('entity_classifications', [])
node_classifications.update(dict(zip(entities, entity_classifications)))
# catch classification errors and continue if we can't classify
finally:
logger.error(f'Failed to classify nodes: {extracted_node_names}')
except Exception as e:
logger.error(f'Failed to classify nodes: {extracted_node_names} with error: {e}')

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

0 comments on commit 989ac7c

Please sign in to comment.