Skip to content

Commit

Permalink
Merged Tisham's null range fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
phaesler committed Jan 6, 2020
1 parent 19ce0bd commit 789d5a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datacube_ows/ows_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,11 @@ def force_range_update(self, ext_dc=None):
self._ranges = None
try:
self._ranges = get_ranges(dc, self)
if self._ranges is None:
raise Exception("Null product range")
except Exception as a:
raise ConfigException("get_ranges failed for layer %s: %s" % (self.name, str(a)))
range_failure = "get_ranges failed for layer %s: %s" % (self.name, str(a))
raise ConfigException(range_failure)
finally:
if not ext_dc:
release_cube(dc)
Expand Down

0 comments on commit 789d5a1

Please sign in to comment.