Skip to content

Commit

Permalink
Merge pull request #184 from davidhassell/data-compressed-array
Browse files Browse the repository at this point in the history
catch missing Array
  • Loading branch information
davidhassell authored May 5, 2022
2 parents 9a868c2 + e102f6f commit f40c52d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cfdm/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,7 @@ def compressed_array(self):
"""
ca = self._get_Array(None)

if not ca.get_compression_type():
if ca is None or not ca.get_compression_type():
raise ValueError("not compressed: can't get compressed array")

return ca.compressed_array
Expand Down

0 comments on commit f40c52d

Please sign in to comment.