mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
parent
f9bc745ddb
commit
b905760635
@ -114,7 +114,7 @@ class Docker(BaseManager):
|
|||||||
data=data,
|
data=data,
|
||||||
headers={"content-type": "application/json", },
|
headers={"content-type": "application/json", },
|
||||||
)
|
)
|
||||||
except aiohttp.ClientResponseError as e:
|
except (aiohttp.ClientResponseError, aiohttp.ClientOSError) as e:
|
||||||
raise DockerError("Docker has returned an error: {}".format(str(e)))
|
raise DockerError("Docker has returned an error: {}".format(str(e)))
|
||||||
if response.status >= 300:
|
if response.status >= 300:
|
||||||
body = yield from response.read()
|
body = yield from response.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user