Skip to content

Commit

Permalink
fix codacy error
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed Nov 3, 2024
1 parent 118da95 commit b9ef605
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/changelogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def get_tags(target: str, manifests: dict[str, Any]):
tags.add(tag)

tags = list(sorted(tags))
assert len(tags) > 2, "No current and previous tags found"
if not len(tags) > 2:
print("No current and previous tags found")
exit(1)
return tags[-2], tags[-1]


Expand Down

0 comments on commit b9ef605

Please sign in to comment.