diff --git a/pypiserver/_app.py b/pypiserver/_app.py index cb9e7f0..7b8e2ea 100644 --- a/pypiserver/_app.py +++ b/pypiserver/_app.py @@ -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)