From 55b4a72e824a0692590d7a644938997f13e48fd1 Mon Sep 17 00:00:00 2001 From: Bohdan <55767250+bodyangug@users.noreply.github.com> Date: Wed, 26 Jul 2023 11:24:09 +0300 Subject: [PATCH] #1194: fix: add validation on BINGO_CUSTOM value. (#1194) --- bingo/bingo-elastic/python/bingo_elastic/elastic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bingo/bingo-elastic/python/bingo_elastic/elastic.py b/bingo/bingo-elastic/python/bingo_elastic/elastic.py index b1adb788bb..61cf4ebcb1 100644 --- a/bingo/bingo-elastic/python/bingo_elastic/elastic.py +++ b/bingo/bingo-elastic/python/bingo_elastic/elastic.py @@ -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}")