Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
fix line that was confusing linter
Browse files Browse the repository at this point in the history
  • Loading branch information
glennklockwood committed May 16, 2019
1 parent 5ec39dd commit b69bfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/connectors/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def get_columns(self, dataset_name):
if self.get_version(dataset_name=dataset_name) is None:
return self._get_columns_h5lmt(dataset_name)

return self.__getitem__(dataset_name).attrs[COLUMN_NAME_KEY].astype('U')
return self.__getitem__(dataset_name).attrs.get(COLUMN_NAME_KEY).astype('U')

def _get_columns_h5lmt(self, dataset_name):
"""Get the column names of an h5lmt dataset
Expand Down

0 comments on commit b69bfe1

Please sign in to comment.