mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
raise exceptions when ue not found
This commit is contained in:
parent
fa272bc0ad
commit
cdbfe669c8
1 changed files with 4 additions and 1 deletions
|
|
@ -4,7 +4,8 @@ import os
|
|||
|
||||
from openpype.lib import (
|
||||
PreLaunchHook,
|
||||
ApplicationLaunchFailed
|
||||
ApplicationLaunchFailed,
|
||||
ApplicationNotFound
|
||||
)
|
||||
from openpype.hosts.unreal.api import lib as unreal_lib
|
||||
|
||||
|
|
@ -62,6 +63,8 @@ class UnrealPrelaunchHook(PreLaunchHook):
|
|||
f"{self.signature} detected UE4 versions: "
|
||||
f"[ {detected_str} ]"
|
||||
))
|
||||
if not detected:
|
||||
raise ApplicationNotFound("No Unreal Engines are found.")
|
||||
|
||||
engine_version = ".".join(engine_version.split(".")[:2])
|
||||
if engine_version not in detected.keys():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue