Skip to content

Commit

Permalink
chore(ruff): fix code flagged by "BLE"
Browse files Browse the repository at this point in the history
  • Loading branch information
sujuka99 committed Sep 26, 2023
1 parent 1621db1 commit d0eefab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kpops/component_handlers/helm_wrapper/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion kpops/pipeline_generator/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}"
Expand Down

0 comments on commit d0eefab

Please sign in to comment.