From 739d4dd5e1e132ea9c0dfe60bfb7297953577eb3 Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Mon, 13 Mar 2023 10:16:11 +0300 Subject: [PATCH] resolves #303 fix `ue4-docker build` with non-custom engine version Broken by ce89fcd226e2e43fd8b29df68de35e4573c65df7 --- src/ue4docker/infrastructure/BuildConfiguration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ue4docker/infrastructure/BuildConfiguration.py b/src/ue4docker/infrastructure/BuildConfiguration.py index a1b8ff4c..c6bd315d 100644 --- a/src/ue4docker/infrastructure/BuildConfiguration.py +++ b/src/ue4docker/infrastructure/BuildConfiguration.py @@ -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}" )