Skip to content

Commit b19bba8

Browse files
authored
Fix CLI-based repo creation (#234)
1 parent df7ed10 commit b19bba8

File tree

1 file changed

+1
-1
lines changed
  • src/huggingface_hub/commands

1 file changed

+1
-1
lines changed

src/huggingface_hub/commands/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def run(self):
224224
)
225225
print("")
226226

227-
user, _ = self._api.whoami(token)
227+
user = self._api.whoami(token)["name"]
228228
namespace = (
229229
self.args.organization if self.args.organization is not None else user
230230
)

0 commit comments

Comments
 (0)