Properly catch aiohttp client exception. Ref #2228

This commit is contained in:
grossmj committed 2023-05-30 16:17:12 +09:30
1 parent 0f02cff5f2
commit 2361e138ec
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -798,7 +798,7 @@ class Project:
try:
await compute.post("/projects/{}/close".format(self._id), dont_connect=True)
# We don't care if a compute is down at this step
except (ComputeError, aiohttp.web.HTTPError, aiohttp.ClientResponseError, TimeoutError):
except (ComputeError, aiohttp.web.HTTPError, aiohttp.ClientError, TimeoutError):
pass
self._clean_pictures()
self._status = "closed"