[catalog] Avoid UnboundLocalError: local variable 'data' referenced before assignment
@@ -205,7 +205,6 @@ class AtlasApi(Api):
return self.fetch_single_entity('hive_column where %s' % qualifiedNameCriteria)
def search_entities_interactive(self, query_s=None, limit=100, offset=0, facetFields=None, facetPrefix=None, facetRanges=None, filterQueries=None, firstClassEntitiesOnly=None, sources=None):
- try:
response = {
"status": 0,
"results": [],
@@ -290,6 +289,7 @@ class AtlasApi(Api):
'attributeValue': owner
})
+ try:
atlas_response = self._root.post('/v2/search/basic', data=json.dumps(data), contenttype=_JSON_CONTENT_TYPE)
# Adapt Atlas entities to Navigator structure in the results
