Skip to content

Commit

Permalink
resolves #303 fix ue4-docker build with non-custom engine version
Browse files Browse the repository at this point in the history
Broken by ce89fcd
  • Loading branch information
slonopotamus committed Mar 13, 2023
1 parent ecac3a4 commit 739d4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ue4docker/infrastructure/BuildConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ def __init__(self, parser, argv, logger):
# Validate the specified version string
try:
ue4Version = Version(self.args.release)
if ue4Version.major not in [4, 5] or ue4Version.pre != 0:
raise Exception()
if ue4Version.major not in [4, 5] or ue4Version.pre is not None:
raise Exception(f"unsupported engine version: {ue4Version}")
self.release = (
f"{ue4Version.major}.{ue4Version.minor}.{ue4Version.micro}"
)
Expand Down

0 comments on commit 739d4dd

Please sign in to comment.