mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
return None from get_latest_version if there are any openpype versions available
This commit is contained in:
parent
d2edf3da74
commit
02b8e57a81
1 changed files with 4 additions and 1 deletions
|
|
@ -559,7 +559,8 @@ class OpenPypeVersion(semver.VersionInfo):
|
|||
staging: bool = False, local: bool = False) -> OpenPypeVersion:
|
||||
"""Get latest available version.
|
||||
|
||||
This is utility version to get latest version from all found.
|
||||
This is utility version to get latest version from all found except
|
||||
build.
|
||||
|
||||
Args:
|
||||
staging (bool, optional): List staging versions if True.
|
||||
|
|
@ -572,6 +573,8 @@ class OpenPypeVersion(semver.VersionInfo):
|
|||
openpype_versions = OpenPypeVersion.get_available_versions(
|
||||
staging, local)
|
||||
|
||||
if not openpype_versions:
|
||||
return None
|
||||
return openpype_versions[-1]
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue