added warning message

main
evanchia 5 years ago
parent 017845e285
commit cf7f1defeb

@ -15,12 +15,14 @@ import os
import pathlib import pathlib
import warnings import warnings
import json import json
import logging
from abc import ABCMeta, abstractmethod from abc import ABCMeta, abstractmethod
from weakref import KeyedRef from weakref import KeyedRef
import ly_test_tools._internal.pytest_plugin import ly_test_tools._internal.pytest_plugin
from ly_test_tools.environment.file_system import find_ancestor_file from ly_test_tools.environment.file_system import find_ancestor_file
logger = logging.getLogger(__name__)
def _find_engine_root(initial_path): def _find_engine_root(initial_path):
# type: (str) -> str # type: (str) -> str
@ -72,8 +74,8 @@ def _find_project_json(engine_root, project):
if project == project_json_data["project_name"]: if project == project_json_data["project_name"]:
project_json = check_project_json project_json = check_project_json
break break
except KeyError: except KeyError as err:
pass # No projects found in the manifest json logger.warning(f"Project key could not be found due to error: {err}")
# Check relative to defined build directory, for external projects which configure through SDK settings # Check relative to defined build directory, for external projects which configure through SDK settings
if not project_json: if not project_json:

Loading…
Cancel
Save