Browse Source

HUE-8381 [metadata] Avoid 'NoneType' object has no attribute 'strip' on list_tags

Romain Rigaux 7 years ago
parent
commit
fe5303ca0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/metadata/src/metadata/catalog/navigator_client.py

+ 1 - 1
desktop/libs/metadata/src/metadata/catalog/navigator_client.py

@@ -198,7 +198,7 @@ class NavigatorApi(Api):
         }
 
       auto_field_facets = ["tags", "type"] + f.keys()
-      query_s = query_s.strip() + '*'
+      query_s = (query_s.strip() if query_s else '') + '*'
 
       last_query_term = [term for term in query_s.split()][-1]