Skip to content

Commit 7ba8332

Browse files
committed
Update error message to state that exec_inspect is not supported
1 parent eb29b42 commit 7ba8332

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ def exec_create(self, container, cmd, stdout=True, stderr=True, tty=False,
307307

308308
def exec_inspect(self, exec_id):
309309
if utils.compare_version('1.16', self._version) < 0:
310-
raise errors.InvalidVersion('Exec is not supported in API < 1.16')
310+
raise errors.InvalidVersion(
311+
'exec_inspect is not supported in API < 1.16'
312+
)
311313
if isinstance(exec_id, dict):
312314
exec_id = exec_id.get('Id')
313315
res = self._get(self._url("/exec/{0}/json".format(exec_id)))

0 commit comments

Comments
 (0)