Skip to content

Commit

Permalink
fix sem_ver comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Feb 28, 2024
1 parent 5aefd54 commit bbc0e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backoffice/validate_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def validate_format(staged: StagedVersion):
rd.validation_summary.status = "passed" # passed in 'discover' mode
if not isinstance(rd, InvalidDescr) and rd.sem_ver is not None:
published = staged.get_published_versions()
if rd.sem_ver in {v["sem_ver"] for v in published.values()}:
if str(rd.sem_ver) in {v["sem_ver"] for v in published.values()}:
error = ErrorEntry(
loc=("sem_ver",),
msg=f"Trying to publish semantic version {rd.sem_ver} again!",
Expand Down

0 comments on commit bbc0e82

Please sign in to comment.