Skip to content

Commit

Permalink
catch missing Array
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhassell committed May 3, 2022
1 parent d0c9f19 commit e102f6f
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 e102f6f

Please sign in to comment.