Skip to content

Commit ad4c0dc

Browse files
committed
fix when fresh isntall
1 parent 5459bb2 commit ad4c0dc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pbpy/pbunreal.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -858,13 +858,16 @@ def download_engine(bundle_name=None, download_symbols=False):
858858
# query build version so we can bump it up
859859
build_version_path = base_path / "Engine" / "Build" / "Build.version"
860860

861-
with open(build_version_path) as f:
862-
build_version = json.load(f)
861+
branch_version = None
862+
if build_version_path.exists():
863+
with open(build_version_path) as f:
864+
build_version = json.load(f)
865+
branch_version = build_version.get("BranchName")
863866

864-
branch_version = build_version["BranchName"]
865-
pblog.info(
866-
f"Comparing target engine version {get_engine_version_with_prefix()} with local engine version {branch_version}"
867-
)
867+
if branch_version:
868+
pblog.info(
869+
f"Comparing target engine version {get_engine_version_with_prefix()} with local engine version {branch_version}"
870+
)
868871

869872
if get_engine_version_with_prefix() == branch_version:
870873
# fast version

0 commit comments

Comments
 (0)