diff --git a/twine/commands/upload.py b/twine/commands/upload.py index b5de4f47..beb81ab3 100644 --- a/twine/commands/upload.py +++ b/twine/commands/upload.py @@ -62,14 +62,17 @@ def skip_upload( # PyPI / TestPyPI / GCP Artifact Registry or (status == 400 and any("already exist" in x for x in [reason, text])) # Nexus Repository OSS (https://www.sonatype.com/nexus-repository-oss) - or (status == 400 and any("updating asset" in x for x in [reason, text])) + or ( + status == 400 + and ( + any("updating asset" in x for x in [reason, text]) + or ("cannot be updated" in text) + ) + ) # Artifactory (https://jfrog.com/artifactory/) or (status == 403 and "overwrite artifact" in text) # Gitlab Enterprise Edition (https://about.gitlab.com) or (status == 400 and "already been taken" in text) - # Sonatype Nexus Repository - # (https://help.sonatype.com/en/pypi-repositories.html) - or (status == 400 and "cannot be updated" in text) )