Skip to content

Commit

Permalink
#1194: fix: add validation on BINGO_CUSTOM value. (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodyangug authored Jul 26, 2023
1 parent 8b04633 commit 55b4a72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bingo/bingo-elastic/python/bingo_elastic/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def get_record_by_index(
return IndigoRecordMolecule(elastic_response=response)
if index == IndexName.BINGO_REACTION.value:
return IndigoRecordReaction(elastic_response=response)
if index == IndexName.BINGO_CUSTOM.value:
return IndigoRecordMolecule(elastic_response=response)
raise AttributeError(f"Unknown index {index}")


Expand Down

0 comments on commit 55b4a72

Please sign in to comment.