mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
expect that get_remote_versions may return None
This commit is contained in:
parent
3685ad9ed5
commit
ed5da3e0b0
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,8 @@ class ProductionVersionsInputEntity(OpenPypeVersionInput):
|
|||
|
||||
def _get_openpype_versions(self):
|
||||
versions = get_remote_versions(staging=False, production=True)
|
||||
if versions is None:
|
||||
return []
|
||||
versions.append(get_installed_version())
|
||||
return sorted(versions)
|
||||
|
||||
|
|
@ -82,4 +84,6 @@ class StagingVersionsInputEntity(OpenPypeVersionInput):
|
|||
|
||||
def _get_openpype_versions(self):
|
||||
versions = get_remote_versions(staging=True, production=False)
|
||||
if versions is None:
|
||||
return []
|
||||
return sorted(versions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue