Skip to content

Commit

Permalink
fix indentation style and stop statement's grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
lyw07 committed Mar 7, 2018
1 parent ef9050b commit 1a84fae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kolibri/utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 4 additions & 2 deletions kolibri/utils/sanity_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)

0 comments on commit 1a84fae

Please sign in to comment.