Skip to content

Commit

Permalink
chore: run ruff formatter
Browse files Browse the repository at this point in the history
Signed-off-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
  • Loading branch information
Mr-Sunglasses committed Feb 19, 2025
1 parent a97f38c commit b133b37
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions podman/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, **kwargs) -> None:

def _verify_connection(self):
"""Verify connection to Podman daemon during initialization.
Raises:
PodmanException: If unable to connect to Podman daemon
"""
Expand All @@ -91,13 +91,9 @@ def _verify_connection(self):
"Error while connecting to Podman daemon: "
f"Could not find socket file - {str(e)}"
) from e
raise PodmanConnectionError(
f"Error while connecting to Podman daemon: {str(e)}"
) from e
raise PodmanConnectionError(f"Error while connecting to Podman daemon: {str(e)}") from e
except Exception as e:
raise PodmanConnectionError(
f"Error while connecting to Podman daemon: {str(e)}"
) from e
raise PodmanConnectionError(f"Error while connecting to Podman daemon: {str(e)}") from e

def __enter__(self) -> "PodmanClient":
return self
Expand Down Expand Up @@ -174,7 +170,6 @@ def from_env(

return PodmanClient(**kwargs)


@cached_property
def containers(self) -> ContainersManager:
"""Returns Manager for operations on containers stored by a Podman service."""
Expand Down

0 comments on commit b133b37

Please sign in to comment.