8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3c2912 commit 6ac153bCopy full SHA for 6ac153b
src/sasctl/tasks.py
@@ -1034,11 +1034,10 @@ def upload_local_model(
1034
raise e
1035
1036
# Unable to find or create the repo.
1037
- if repository is None and repo_name is None:
+ if not repository and not repo_name:
1038
raise ValueError("Unable to find a default repository")
1039
-
1040
- if repository is None:
1041
- raise ValueError("Unable to find repository '{}'".format(repository))
+ elif not repository:
+ raise ValueError(f"Unable to find repository '{repo_name}'")
1042
p = mr.get_project(project_name)
1043
if p is None:
1044
mr.create_project(project_name, repository)
0 commit comments