Agent: Remove unnecessary local variable

This commit is contained in:
Mike Salvatore 2022-09-19 12:16:20 -04:00
parent db75806a08
commit 6563be8222
1 changed files with 1 additions and 3 deletions

View File

@ -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: