1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00

Bug fix for overwriting existing files without the overwrite flag being set to true.

This commit is contained in:
Craig Davis 2016-02-16 14:09:05 -06:00
parent 25a98ed9a7
commit 9fb44af448

@ -153,7 +153,7 @@ def file_upload():
log.warn("Cannot upload %r since it already exists! \n"
" You may start server with `--overwrite` option. ",
uf.raw_filename)
HTTPError(409, "Package %r already exists!\n"
raise HTTPError(409, "Package %r already exists!\n"
" You may start server with `--overwrite` option.",
uf.raw_filename)