Skip to content

Commit 9a489a8

Browse files
committed
grpahql | fixing test
1 parent e7c1680 commit 9a489a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/graphql/queries.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from django.utils import timezone
1010
from elasticsearch import ConnectionError as ESConnectionError, TransportError
1111
from elasticsearch_dsl import Q as ES_Q
12+
from pydash import get
1213
from strawberry.exceptions import GraphQLError
1314

1415
from core.common.constants import HEAD
@@ -434,8 +435,8 @@ async def concepts_for_query(
434435
logger.info(
435436
'ES returned zero hits for query="%s" in source "%s" version "%s". Falling back to DB search.',
436437
query,
437-
source_version.mnemonic,
438-
source_version.version,
438+
get(source_version, 'mnemonic'),
439+
get(source_version, 'version'),
439440
)
440441
else:
441442
return [], total

0 commit comments

Comments
 (0)