mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
studio: Don't fail on empty params.
This commit is contained in:
@@ -340,6 +340,6 @@ def to_studio_params(dvc_params):
|
||||
return result
|
||||
for rev_data in dvc_params.values():
|
||||
for file_name, file_data in rev_data.get("data", {}).items():
|
||||
result[file_name] = file_data["data"]
|
||||
result[file_name] = file_data.get("data", {})
|
||||
|
||||
return result
|
||||
|
||||
@@ -62,6 +62,10 @@ def test_run_check_ref_format(scm, name, result):
|
||||
{"workspace": {"data": {"params.yaml": {"data": {"foo": 1}}}}},
|
||||
{"params.yaml": {"foo": 1}},
|
||||
),
|
||||
(
|
||||
{"workspace": {"data": {"params.yaml": {"error": "FileNotFound"}}}},
|
||||
{"params.yaml": {}},
|
||||
),
|
||||
(
|
||||
{"workspace": {"error": "something went wrong"}},
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user