Skip to content

Commit 7546850

Browse files
committed
fix: fmt.echo_info doesn't return anything and print out the content
1 parent df58ce6 commit 7546850

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tutorwordpress/plugin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ def config(context: click.Context) -> None:
7979
lms_host = f"{protocol}://{config['LMS_HOST']}"
8080
click.echo(fmt.title("WordPress Plugin Configurations"))
8181
click.echo(
82-
fmt.echo_info(
83-
"\n"
84-
f"Open edX Domain: {lms_host} \n"
85-
f"Client ID: {config['WORDPRESS_OAUTH2_KEY_SSO']} \n"
86-
f"Client ID (dev): {config['WORDPRESS_OAUTH2_KEY_SSO_DEV']} \n"
87-
f"Client Secret: {config['WORDPRESS_OAUTH2_SECRET']} \n"
82+
fmt.echo_info(
83+
"\n"
84+
f"Open edX Domain: {lms_host} \n"
85+
f"Client ID: {config['WORDPRESS_OAUTH2_KEY_SSO']} \n"
86+
f"Client ID (dev): {config['WORDPRESS_OAUTH2_KEY_SSO_DEV']} \n"
87+
f"Client Secret: {config['WORDPRESS_OAUTH2_SECRET']} \n"
8888
)
8989
)

0 commit comments

Comments
 (0)