Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: params_show: Raise exception if no params found. #7938

Merged
merged 1 commit into from Jul 5, 2022

Conversation

daavoo
Copy link
Contributor

@daavoo daavoo commented Jun 27, 2022

Fixes #7926

@daavoo daavoo requested a review from dberenbaum June 27, 2022 09:17
@daavoo daavoo requested a review from a team as a code owner June 27, 2022 09:17
@daavoo daavoo requested a review from skshetry June 27, 2022 09:17
@daavoo daavoo linked an issue Jun 27, 2022 that may be closed by this pull request
@daavoo daavoo self-assigned this Jun 27, 2022
@daavoo daavoo added A: api Related to the dvc.api ui user interface / interaction labels Jun 27, 2022
@daavoo daavoo force-pushed the 7926-dvcapiparams_show-more-helpful-error-handling branch from abcc91a to 0ea65c0 Compare June 27, 2022 12:59
(tmp_dir / "params.yaml").dump({"foo": 1})
assert api.params_show() == {"foo": 1}

# dvc.yaml but no params.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case is more strict than an Empty repo?

@daavoo daavoo merged commit 954de0c into main Jul 5, 2022
@daavoo daavoo deleted the 7926-dvcapiparams_show-more-helpful-error-handling branch July 5, 2022 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: api Related to the dvc.api ui user interface / interaction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dvc.api.params_show: More helpful error handling
3 participants