File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def __init__(self, **kwargs) -> None:
78
78
79
79
def _verify_connection (self ):
80
80
"""Verify connection to Podman daemon during initialization.
81
-
81
+
82
82
Raises:
83
83
PodmanException: If unable to connect to Podman daemon
84
84
"""
@@ -91,13 +91,9 @@ def _verify_connection(self):
91
91
"Error while connecting to Podman daemon: "
92
92
f"Could not find socket file - { str (e )} "
93
93
) from e
94
- raise PodmanConnectionError (
95
- f"Error while connecting to Podman daemon: { str (e )} "
96
- ) from e
94
+ raise PodmanConnectionError (f"Error while connecting to Podman daemon: { str (e )} " ) from e
97
95
except Exception as e :
98
- raise PodmanConnectionError (
99
- f"Error while connecting to Podman daemon: { str (e )} "
100
- ) from e
96
+ raise PodmanConnectionError (f"Error while connecting to Podman daemon: { str (e )} " ) from e
101
97
102
98
def __enter__ (self ) -> "PodmanClient" :
103
99
return self
@@ -174,7 +170,6 @@ def from_env(
174
170
175
171
return PodmanClient (** kwargs )
176
172
177
-
178
173
@cached_property
179
174
def containers (self ) -> ContainersManager :
180
175
"""Returns Manager for operations on containers stored by a Podman service."""
You can’t perform that action at this time.
0 commit comments