From 1a84fae66023718274e45dba597ceb5d0379e8e5 Mon Sep 17 00:00:00 2001 From: Lingyi Wang Date: Wed, 7 Mar 2018 09:27:50 -0800 Subject: [PATCH] fix indentation style and stop statement's grammar --- kolibri/utils/cli.py | 2 +- kolibri/utils/sanity_checks.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kolibri/utils/cli.py b/kolibri/utils/cli.py index a515a1b35aa..9d949ccee5f 100644 --- a/kolibri/utils/cli.py +++ b/kolibri/utils/cli.py @@ -312,7 +312,7 @@ def stop(): pid, __, __ = server.get_status() server.stop(pid=pid) stopped = True - logger.info("Kolibri server has been successfully stoppped.") + logger.info("Kolibri server has successfully been stoppped.") except server.NotRunning as e: verbose_status = "{msg:s} ({code:d})".format( code=e.status_code, diff --git a/kolibri/utils/sanity_checks.py b/kolibri/utils/sanity_checks.py index 429112e8aea..ad829b9d096 100644 --- a/kolibri/utils/sanity_checks.py +++ b/kolibri/utils/sanity_checks.py @@ -14,7 +14,8 @@ def check_other_kolibri_running(port): pid, listen_address, listen_port = get_status() logger.error( "There is another Kolibri server running. " - "Please use `kolibri stop` and try again.") + "Please use `kolibri stop` and try again." + ) sys.exit(1) except NotRunning: @@ -37,6 +38,7 @@ def check_port_availability(host, port): logger.error( "Port {} is occupied.\n" "Please check that you do not have other processes " - "running on this port and try again.\n".format(port)) + "running on this port and try again.\n".format(port) + ) s.close() sys.exit(1)