mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-02-07 08:43:48 +02:00
parent
8f42122702
commit
1cf987a548
@ -456,8 +456,9 @@ class ProjectHandler:
|
|||||||
if not packet:
|
if not packet:
|
||||||
break
|
break
|
||||||
f.write(packet)
|
f.write(packet)
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
raise aiohttp.web.HTTPNotFound()
|
raise aiohttp.web.HTTPNotFound()
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
raise aiohttp.web.HTTPForbidden()
|
raise aiohttp.web.HTTPForbidden()
|
||||||
|
except OSError as e:
|
||||||
|
raise aiohttp.web.HTTPConflict(text=str(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user