avoid duplicated calls

This commit is contained in:
Jakub Trllo 2022-05-04 17:45:54 +02:00
parent 2ec9bcfca1
commit f3cf21ebb4

View file

@ -911,17 +911,11 @@ def _boot_validate_versions(use_version, local_version):
sys.exit(1)
# print result
result = bootstrap.validate_openpype_version(
bootstrap.get_version_path_from_list(
use_version, openpype_versions))
_print("{}{}".format(
">>> " if result[0] else "!!! ",
bootstrap.validate_openpype_version(
bootstrap.get_version_path_from_list(
use_version, openpype_versions)
)[1])
version_path = bootstrap.get_version_path_from_list(
use_version, openpype_versions
)
valid, message = bootstrap.validate_openpype_version(version_path)
_print("{}{}".format(">>> " if valid else "!!! ", message))
def _boot_print_versions(use_staging, local_version, openpype_root):