diff --git a/src/oca_github_bot/pypi.py b/src/oca_github_bot/pypi.py index 51b1cebf..1643026a 100644 --- a/src/oca_github_bot/pypi.py +++ b/src/oca_github_bot/pypi.py @@ -109,7 +109,10 @@ def publish(self, dist_dir: str, dry_run: bool) -> None: env=dict(os.environ, TWINE_PASSWORD=self._password), ) except CalledProcessError as e: - if "File already exists" in e.output: + if ( + "File already exists" in e.output + or "This filename has already been used" in e.output + ): # in case exist_on_index() received an outdated index page _logger.warning( f"Could not upload {filename} that already exists "