diff --git a/es/elastic/api.py b/es/elastic/api.py index 40c100f..9044818 100644 --- a/es/elastic/api.py +++ b/es/elastic/api.py @@ -120,9 +120,13 @@ def get_valid_table_view_names(self, type_filter: str) -> "Cursor": for item in response: # First column is TABLE_NAME if item["index"] == self._get_value_for_col_name(result, "name"): - if int(item["docs.count"]) == 0: - is_empty = True - break + try: + if int(item["docs.count"]) == 0: + is_empty = True + break + except Exception as ex: + is_empty = True + break if ( not is_empty and self._get_value_for_col_name(result, "type") == type_filter