forked from p15670423/monkey
Agent: Remove unnecessary local variable
This commit is contained in:
parent
db75806a08
commit
6563be8222
|
@ -58,9 +58,7 @@ def _check_if_island_server(server: str) -> IIslandAPIClient:
|
||||||
logger.debug(f"Trying to connect to server: {server}")
|
logger.debug(f"Trying to connect to server: {server}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
island_api_client = HTTPIslandAPIClient(server)
|
return HTTPIslandAPIClient(server)
|
||||||
|
|
||||||
return island_api_client
|
|
||||||
except IslandAPIConnectionError as err:
|
except IslandAPIConnectionError as err:
|
||||||
logger.error(f"Unable to connect to server/relay {server}: {err}")
|
logger.error(f"Unable to connect to server/relay {server}: {err}")
|
||||||
except IslandAPITimeoutError as err:
|
except IslandAPITimeoutError as err:
|
||||||
|
|
Loading…
Reference in New Issue