Fix a rare crash when writing a file on a remote server

Fix #829
This commit is contained in:
Julien Duponchelle committed 2016-12-13 09:25:44 +01:00
1 parent 8f42122702
commit 1cf987a548
1 file changed
+2 -1
@@ -456,8 +456,9 @@ class ProjectHandler:
if not packet:
break
f.write(packet)
except FileNotFoundError:
raise aiohttp.web.HTTPNotFound()
except PermissionError:
raise aiohttp.web.HTTPForbidden()
except OSError as e:
raise aiohttp.web.HTTPConflict(text=str(e))