Skip to content

Commit

Permalink
fix: TOOLS-2717 info namespace object displays error when connectin…
Browse files Browse the repository at this point in the history
…g to CE server (#231)
  • Loading branch information
jdogmcsteezy committed Nov 6, 2023
1 parent ec29730 commit d309af7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/live_cluster/client/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ async def wrapper(*args, raise_exception=False, **kwargs):
except (ASInfoNotAuthenticatedError, ASProtocolConnectionError) as e:
args[0].alive = False
exception = e
except (ASInfoError, ASProtocolError) as e:
exception = e
except Exception as e:
except OSError as e:
args[0].alive = False
exception = e
except (ASInfoError, ASProtocolError, Exception) as e:
exception = e

if raise_exception:
raise
Expand Down Expand Up @@ -2454,6 +2454,10 @@ async def info_rack_ids(self):
dict -- {ns1: rack_id, ns2: rack_id, ...}
"""
resp = await self._info("rack-ids")

if "ERROR" in resp:
raise ASInfoResponseError("Failed to get rack ids for this node", resp)

rack_data = {}

if not resp:
Expand Down

0 comments on commit d309af7

Please sign in to comment.