Skip to content

Commit

Permalink
update: resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotzh committed Apr 26, 2024
1 parent 0c406ab commit 0f9a1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/promptflow-devkit/promptflow/_sdk/_utils/general_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,4 +1123,6 @@ def resolve_flow_language(
file_path = flow_path / flow_file
if file_path.is_file() and file_path.suffix.lower() in (".yaml", ".yml"):
yaml_dict = load_yaml(file_path)
else:
raise UserErrorException(f"Invalid flow path {file_path.as_posix()}, must exist and of suffix yaml or yml.")
return yaml_dict.get(LANGUAGE_KEY, FlowLanguage.Python)

0 comments on commit 0f9a1a5

Please sign in to comment.