diff --git a/reserver/reserver_obj.py b/reserver/reserver_obj.py index 7fec654..20300fd 100644 --- a/reserver/reserver_obj.py +++ b/reserver/reserver_obj.py @@ -109,9 +109,12 @@ def upload(self, package_name, user_parameters=None): error = "Invalid or non-existent authentication information(PyPI API Key)." if "400" in error and "too similar to an existing project" in error: error = "Given package name is too similar to an existing project in PyPI." + if "400" in error and "isn't allowed." in error: + error = "Given package name has conflict with the module name of a previously taken package (the taken package itself has a different name, but it's module name has conflict)." + if "400" in error and "isn't allowed (conflict with Python Standard Library" in error: + error = "Given package name has conflict with Python Standard Library module name." break - # todo remove env variable if "TWINE_USERNAME" in environ: environ.pop("TWINE_USERNAME") if "TWINE_PASSWORD" in environ: