We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c1680 commit 9a489a8Copy full SHA for 9a489a8
core/graphql/queries.py
@@ -9,6 +9,7 @@
9
from django.utils import timezone
10
from elasticsearch import ConnectionError as ESConnectionError, TransportError
11
from elasticsearch_dsl import Q as ES_Q
12
+from pydash import get
13
from strawberry.exceptions import GraphQLError
14
15
from core.common.constants import HEAD
@@ -434,8 +435,8 @@ async def concepts_for_query(
434
435
logger.info(
436
'ES returned zero hits for query="%s" in source "%s" version "%s". Falling back to DB search.',
437
query,
- source_version.mnemonic,
438
- source_version.version,
+ get(source_version, 'mnemonic'),
439
+ get(source_version, 'version'),
440
)
441
else:
442
return [], total
0 commit comments