From 18ab7c1ec2b2fb9c6f24819b2ec7439a5b41de5a Mon Sep 17 00:00:00 2001 From: Gabriel Schowe Date: Wed, 18 Sep 2024 15:14:30 +0200 Subject: [PATCH] Fix: Async Iterator --- pontos/github/api/packages.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pontos/github/api/packages.py b/pontos/github/api/packages.py index fb60fcbf5..6edcece36 100644 --- a/pontos/github/api/packages.py +++ b/pontos/github/api/packages.py @@ -347,8 +347,7 @@ async def delete_package_with_tag( tag="latest", ) """ - versions = await self.package_versions(organization, package_type, package_name) - async for version in versions: + async for version in self.package_versions(organization, package_type, package_name): for diftag in version.tags: if tag == diftag: await self.delete_package_version(organization, package_type, package_name, version.version)