Skip to content

Commit

Permalink
Fix: Async Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielschowe committed Sep 18, 2024
1 parent f62a3ae commit 18ab7c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pontos/github/api/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 18ab7c1

Please sign in to comment.