Skip to content

Commit a12210c

Browse files
authored
Fixed bug in octosuite.py
1 parent 47e0b4c commit a12210c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octosuite/octosuite.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def org_profile(self):
527527
if response.status_code == 404:
528528
xprint(f"{NEGATIVE} {org_not_found.format(organization)}")
529529
elif response.status_code == 200:
530-
org_profile_tree = Tree("\n" + response.json()['name'])
530+
org_profile_tree = Tree("\n{response.json()['name']}")
531531
for attr in self.org_attrs:
532532
org_profile_tree.add(f"{self.org_attr_dict[attr]}: {response.json()[attr]}")
533533
xprint(org_profile_tree)
@@ -547,7 +547,7 @@ def user_profile(self):
547547
if response.status_code == 404:
548548
xprint(f"{NEGATIVE} {user_not_found.format(username)}")
549549
elif response.status_code == 200:
550-
user_profile_tree = Tree("\n" + response.json()['name'])
550+
user_profile_tree = Tree(f"\n{response.json()['name']}")
551551
for attr in self.profile_attrs:
552552
user_profile_tree.add(f"{self.profile_attr_dict[attr]}: {response.json()[attr]}")
553553
xprint(user_profile_tree)
@@ -570,7 +570,7 @@ def repo_profile(self):
570570
if response.status_code == 404:
571571
xprint(f"{NEGATIVE} {repo_or_user_not_found.format(repo_name, username)}")
572572
elif response.status_code == 200:
573-
repo_profile_tree = Tree("\n" + response.json()['full_name'])
573+
repo_profile_tree = Tree(f"\n{response.json()['full_name']}")
574574
for attr in self.repo_attrs:
575575
repo_profile_tree.add(f"{self.repo_attr_dict[attr]}: {response.json()[attr]}")
576576
xprint(repo_profile_tree)

0 commit comments

Comments
 (0)