We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89cde0b commit e62ca99Copy full SHA for e62ca99
apis/utils.py
@@ -215,7 +215,8 @@ def docker_network_exists(name):
215
cli.inspect_network(name)
216
except docker.errors.APIError as e:
217
# Forward compatibility for some exceptions raise.
218
- if e.status_code == 404:
+ # Fixed bug for docker 2.1.0 e.status_code (ugly)
219
+ if e.response is not None and e.response.status_code == 404:
220
return False
221
raise e
222
return True
0 commit comments