Skip to content

Commit

Permalink
Merge pull request #2494 from pypeclub/bugfix/OP-2334_OpenPype-versio…
Browse files Browse the repository at this point in the history
…n-may-break-settings

General: Settings work if OpenPypeVersion is available
  • Loading branch information
iLLiCiTiT committed Jan 6, 2022
2 parents 751ccd5 + ed5da3e commit 97a81af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openpype/settings/entities/op_version_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

0 comments on commit 97a81af

Please sign in to comment.