fix how the expected studio version is checked

This commit is contained in:
Jakub Trllo 2022-10-26 11:00:57 +02:00
parent 46d06b01b0
commit 12522aa590

View file

@ -195,9 +195,9 @@ def get_latest_version(local=None, remote=None):
def get_expected_studio_version(staging=None):
"""Expected production or staging version in studio."""
if staging is None:
staging = is_running_staging()
if op_version_control_available():
if staging is None:
staging = is_staging_enabled()
return get_OpenPypeVersion().get_expected_studio_version(staging)
return None