Skip to content

Commit

Permalink
Improved logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Oct 12, 2023
1 parent c82f4fc commit 0ae2ba0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node_normalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,13 @@ async def create_node(canonical_id, equivalent_ids, types, info_contents, includ

# If we have 'None' in the equivalent IDs, something has gone horrible wrong. Return None.
if None in equivalent_ids[canonical_id]:
logging.error(f"No equivalent IDs found for canonical ID {canonical_id} among eqids: {equivalent_ids}")
return None

# If we have 'None' in the canonical types, something went horribly wrong (specifically: we couldn't
# find the type information for all the eqids for this clique). Return None.
if None in types[canonical_id]:
logging.error(f"No types found for canonical ID {canonical_id} among types: {types}")
return None

# OK, now we should have id's in the format [ {"i": "MONDO:12312", "l": "Scrofula"}, {},...]
Expand Down

0 comments on commit 0ae2ba0

Please sign in to comment.