Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infrahub_sdk/ctl/cli_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async def _run_transform(
elif isinstance(error, str) and "Branch:" in error:
console.print(f"[yellow] - {error}")
console.print("[yellow] you can specify a different branch with --branch")
raise typer.Abort()
raise typer.Abort

if inspect.iscoroutinefunction(transform_func):
output = await transform_func(response)
Expand Down
4 changes: 2 additions & 2 deletions infrahub_sdk/ctl/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def active(self) -> Settings:
return self._settings

print("Configuration not properly loaded")
raise typer.Abort()
raise typer.Abort

def load(self, config_file: str | Path = "infrahubctl.toml", config_data: dict | None = None) -> None:
"""Load configuration.
Expand Down Expand Up @@ -90,7 +90,7 @@ def load_and_exit(self, config_file: str | Path = "infrahubctl.toml", config_dat
for error in exc.errors():
loc_str = [str(item) for item in error["loc"]]
print(f" {'/'.join(loc_str)} | {error['msg']} ({error['type']})")
raise typer.Abort()
raise typer.Abort


SETTINGS = ConfiguredSettings()
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ ignore = [
"TID", # flake8-tidy-imports
"FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"RSE", # flake8-raise
"BLE", # flake8-blind-except (BLE)

##################################################################################################
Expand Down