From 1911edd550d76493f5bcc0cf4d3ab7e0c6ec4bd7 Mon Sep 17 00:00:00 2001 From: Oskar Handmark Date: Wed, 18 Nov 2020 11:49:38 +0100 Subject: [PATCH] add another chunked encoding error catch --- cowait/engine/docker.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cowait/engine/docker.py b/cowait/engine/docker.py index 4d49acad..31f8df25 100644 --- a/cowait/engine/docker.py +++ b/cowait/engine/docker.py @@ -171,6 +171,11 @@ def kill_family(container): except docker.errors.NotFound: return [task_id] + except requests.exceptions.ChunkedEncodingError: + # workaround for a bug in docker on mac: + # https://github.com/docker/docker-py/issues/2696 + return None + except requests.exceptions.ConnectionError: raise ProviderError('Docker engine unavailable')