Unverified Commit 556a4205 authored by Sai-Suraj-27's avatar Sai-Suraj-27 Committed by GitHub
Browse files

fix: Fixed the arguments in `create_repo()` function call (#31947)

* Fixed the arguments in create_repo() function call.

* Formatted the code properly using ruff.

* Formatted the code more clearly.
parent 90750042
...@@ -185,7 +185,7 @@ class RepoCreateCommand(BaseUserCommand): ...@@ -185,7 +185,7 @@ class RepoCreateCommand(BaseUserCommand):
print("Abort") print("Abort")
exit() exit()
try: try:
url = create_repo(token, name=self.args.name, organization=self.args.organization) url = create_repo(repo_id=full_name, token=token)
except HTTPError as e: except HTTPError as e:
print(e) print(e)
print(ANSI.red(e.response.text)) print(ANSI.red(e.response.text))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment