Skip to content

Commit aa17b12

Browse files
author
Sean Sullivan
committed
pylint
1 parent b07f5df commit aa17b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elastic_datashader/elastic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_field_type(elastic_hosts: str, headers: Optional[str], params: Dict[str,
175175
field_parts = field.split(".")
176176
try:
177177
return mappings[index]['mappings'][field]['mapping'][field_parts[-1]]['type'] # handles 'geo_center' or a nested object {signal:{geo:{location:{}}}}
178-
except:
178+
except AttributeError:
179179
return mappings[index]['mappings'][field]['mapping'][field]['type'] # handles literal string with periods 'signal.geo.location'
180180

181181
def get_search_base(

0 commit comments

Comments
 (0)