Skip to content

Commit

Permalink
fix: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
2mal3 committed Dec 6, 2024
1 parent 8ca71fa commit 5370f95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion somnus/logic/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

async def start_server(config: Config = CONFIG):
server_state = await get_server_state(config)
log.debug(f"Host server running: {server_state.host_server_running} | MC server running: {server_state.mc_server_running}")
log.debug(
f"Host server running: {server_state.host_server_running} | MC server running: {server_state.mc_server_running}"
)

if server_state.host_server_running and server_state.mc_server_running:
raise UserInputError(LH.t("commands.start.error.already_running"))
Expand Down
4 changes: 3 additions & 1 deletion somnus/logic/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
async def stop_server(shutdown: ServerState, config: Config = CONFIG):
ssh = await ssh_login(config)
server_state = await get_server_state(config)
log.debug(f"Host server running: {server_state.host_server_running} | MC server running: {server_state.mc_server_running}")
log.debug(
f"Host server running: {server_state.host_server_running} | MC server running: {server_state.mc_server_running}"
)

if not (server_state.host_server_running or server_state.mc_server_running):
raise UserInputError(LH.t("commands.stop.error.already_stopped"))
Expand Down
1 change: 0 additions & 1 deletion somnus/logic/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
from typing import Literal

from mcstatus import JavaServer
from pexpect import pxssh
Expand Down

0 comments on commit 5370f95

Please sign in to comment.