parent
d82118db20
commit
156a19f05c
1 changed files with 3 additions and 2 deletions
|
|
@ -58,8 +58,9 @@ class LndRestWallet(Wallet):
|
||||||
r = await client.get(
|
r = await client.get(
|
||||||
f"{self.endpoint}/v1/balance/channels", headers=self.auth
|
f"{self.endpoint}/v1/balance/channels", headers=self.auth
|
||||||
)
|
)
|
||||||
except (httpx.ConnectError, httpx.RequestError):
|
r.raise_for_status()
|
||||||
return StatusResponse(f"Unable to connect to {self.endpoint}.", 0)
|
except (httpx.ConnectError, httpx.RequestError) as exc:
|
||||||
|
return StatusResponse(f"Unable to connect to {self.endpoint}. {exc}", 0)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = r.json()
|
data = r.json()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue