From 3acdf274a7603c5fbce8b824d0c5c550edbf4d51 Mon Sep 17 00:00:00 2001 From: Paul Haesler Date: Thu, 2 May 2024 11:59:34 +1000 Subject: [PATCH] Minor reformat. --- datacube_ows/ows_configuration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datacube_ows/ows_configuration.py b/datacube_ows/ows_configuration.py index bb866a70..f2e83684 100644 --- a/datacube_ows/ows_configuration.py +++ b/datacube_ows/ows_configuration.py @@ -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) @@ -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