From d0eefab5a6bc648393c134714a94e455f49662ab Mon Sep 17 00:00:00 2001 From: Ivan Yordanov Date: Tue, 26 Sep 2023 23:45:31 +0300 Subject: [PATCH] chore(ruff): fix code flagged by "BLE" --- kpops/component_handlers/helm_wrapper/helm.py | 2 +- kpops/pipeline_generator/pipeline.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kpops/component_handlers/helm_wrapper/helm.py b/kpops/component_handlers/helm_wrapper/helm.py index 8eb65b583..95c8ee4f0 100644 --- a/kpops/component_handlers/helm_wrapper/helm.py +++ b/kpops/component_handlers/helm_wrapper/helm.py @@ -52,7 +52,7 @@ def add_repo( try: self.__execute(command) - except Exception as e: + except (ReleaseNotFoundException, RuntimeError) as e: if ( len(e.args) == 1 and re.match( diff --git a/kpops/pipeline_generator/pipeline.py b/kpops/pipeline_generator/pipeline.py index 09d91c923..7b3515e1c 100644 --- a/kpops/pipeline_generator/pipeline.py +++ b/kpops/pipeline_generator/pipeline.py @@ -169,7 +169,7 @@ def parse_components(self, component_list: list[dict]) -> None: ) from ke component_class = self.registry[component_type] self.apply_component(component_class, component_data) - except Exception as ex: + except Exception as ex: # noqa: BLE001 if "name" in component_data: raise ParsingException( f"Error enriching {component_data['type']} component {component_data['name']}"