Skip to content

Commit 8824162

Browse files
committed
Remove if-block already cover in try-block
1 parent 0155269 commit 8824162

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

repo2docker/docker.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ def container_cli(self):
100100
f"The {cli} commandline client must be installed: {e}"
101101
) from None
102102

103-
if docker_version.returncode:
104-
raise RuntimeError(
105-
f"'{" ".join(cli_version_call)}' failed and returned the code {docker_version.returncode}"
106-
)
107-
108103
# docker buildx is based in a plugin that might not be installed
109104
# https://github.com/docker/buildx
110105
#
@@ -118,11 +113,6 @@ def container_cli(self):
118113
except (subprocess.CalledProcessError, OSError) as e:
119114
raise RuntimeError(f"The buildx plugin must be installed: {e}") from None
120115

121-
if docker_buildx_version.returncode:
122-
raise RuntimeError(
123-
f"'{" ".join(cli_buildx_version_call)}' failed and returned the code {docker_buildx_version.returncode}"
124-
)
125-
126116
self._container_cli = cli
127117

128118
return self._container_cli

0 commit comments

Comments
 (0)