Skip to content

Commit

Permalink
add another chunked encoding error catch
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarHandmark committed Nov 18, 2020
1 parent 108a10a commit 1911edd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cowait/engine/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 1911edd

Please sign in to comment.