fix exceptions

This commit is contained in:
Ondrej Samohel 2021-06-09 18:24:38 +02:00 committed by Ondrej Samohel
parent 8b0036cf53
commit 969c32abd6
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -174,7 +174,7 @@ def create_unreal_project(project_name: str,
env (dict, optional): Environment to use. If not set, `os.environ`.
Throws:
NotImplemented: For unsupported platforms.
NotImplementedError: For unsupported platforms.
Returns:
None
@ -304,7 +304,7 @@ def create_unreal_project(project_name: str,
subprocess.run([python_path, "-m",
"pip", "install", "pyside"])
else:
raise NotImplemented("Unsupported platform")
raise NotImplementedError("Unsupported platform")
if dev_mode or preset["dev_mode"]:
_prepare_cpp_project(project_file, engine_path)
@ -452,7 +452,7 @@ class {1}_API A{0}GameModeBase : public AGameModeBase
f"UnrealHeaderTool")
if not u_header_tool:
raise NotImplemented("Unsupported platform")
raise NotImplementedError("Unsupported platform")
u_build_tool = u_build_tool.replace("\\", "/")
u_header_tool = u_header_tool.replace("\\", "/")