Skip to content

Commit

Permalink
Minor reformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed May 2, 2024
1 parent 2db136c commit 3acdf27
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 @@ -414,6 +414,7 @@ def __init__(self, cfg: CFG_DICT, global_cfg: "OWSConfig", parent_layer: OWSFold
self.hide = False
self.local_env: ODCEnvironment | None = None
local_env = cast(str | None, cfg.get("env"))
self.local_env = ODCConfig.get_environment(env=local_env)
# TODO: MULTIDB_SUPPORT
# After refactoring the range tables, Uncomment this code for multi-database support
# (Don't forget to add to documentation)
Expand Down Expand Up @@ -598,7 +599,9 @@ def make_ready(self, *args: Any, **kwargs: Any) -> None:
if low_res_prod_name:
product = self.dc.index.products.get_by_name(low_res_prod_name)
if not product:
raise ConfigException(f"Could not find product {low_res_prod_name} in datacube for layer {self.name}")
raise ConfigException(
f"Could not find product {low_res_prod_name} in datacube for layer {self.name}"
)
self.low_res_products.append(product)
self.product = self.products[0]
self.definition = self.product.definition
Expand Down

0 comments on commit 3acdf27

Please sign in to comment.