Skip to content

Commit

Permalink
Fix RuntimeError: File size has increased during compressing
Browse files Browse the repository at this point in the history
Fix #858
  • Loading branch information
julien-duponchelle committed Jan 9, 2017
1 parent 5c81935 commit 688122c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gns3server/handlers/api/controller/project_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ def export_project(request, response):

yield from response.write_eof()
# Will be raise if you have no space left or permission issue on your temporary directory
except OSError as e:
# RuntimeError: something was wrong during the zip process
except (OSError, RuntimeError) as e:
raise aiohttp.web.HTTPNotFound(text="Can't export project: {}".format(str(e)))

@Route.post(
Expand Down

0 comments on commit 688122c

Please sign in to comment.