Skip to content

Commit

Permalink
Handle missing entity reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Feb 6, 2018
1 parent 5a77890 commit 3226abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indra/sources/biopax/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ def _get_chebi_id(bpe):
def _get_rna_grounding(bpe):
bp_entref = BiopaxProcessor._get_entref(bpe)
if bp_entref is None:
return None
return {}
xrefs = bp_entref.getXref().toArray()
rna_grounding = {}
for xr in xrefs:
Expand All @@ -1135,7 +1135,7 @@ def _get_rna_grounding(bpe):
def _get_chemical_grounding(bpe):
bp_entref = BiopaxProcessor._get_entref(bpe)
if bp_entref is None:
return None
return {}
xrefs = bp_entref.getXref().toArray()
chemical_grounding = {}
for xr in xrefs:
Expand Down

0 comments on commit 3226abe

Please sign in to comment.