Skip to content

Commit

Permalink
fix: None not iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Aug 17, 2024
1 parent 0e3dddf commit 9e2d8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brownie/project/compiler/vyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,4 +462,4 @@ def _convert_to_semver(versions: List[PVersion]) -> List[Version]:
vvm 0.2.0 switched to packaging.version but we are not ready to migrate brownie off of semantic-version.
This function serves as a stopgap.
"""
return [Version(major=version.major, minor=version.minor, patch=version.micro, prerelease=''.join(str(x) for x in version.pre)) for version in versions]
return [Version(major=version.major, minor=version.minor, patch=version.micro, prerelease=''.join(str(x) for x in version.pre) if version.pre else None) for version in versions]

0 comments on commit 9e2d8b4

Please sign in to comment.