Catch timeout error when closing project

Fix #698
This commit is contained in:
Julien Duponchelle 2016-09-30 10:40:10 +02:00
parent a8c32e6b8e
commit 36175f7c26
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -531,7 +531,7 @@ class Project:
try:
yield from compute.post("/projects/{}/close".format(self._id))
# We don't care if a compute is down at this step
except (aiohttp.errors.ClientOSError, aiohttp.web.HTTPError, aiohttp.ClientResponseError):
except (aiohttp.errors.ClientOSError, aiohttp.web.HTTPError, aiohttp.ClientResponseError, TimeoutError):
pass
self._cleanPictures()
self._status = "closed"