Wallets: Catch errors during cleanup (#1829)
* jetz aba * catch RuntimeError
This commit is contained in:
@@ -32,7 +32,10 @@ class LNbitsWallet(Wallet):
|
||||
self.client = httpx.AsyncClient(base_url=self.endpoint, headers=self.key)
|
||||
|
||||
async def cleanup(self):
|
||||
await self.client.aclose()
|
||||
try:
|
||||
await self.client.aclose()
|
||||
except RuntimeError as e:
|
||||
logger.warning(f"Error closing wallet connection: {e}")
|
||||
|
||||
async def status(self) -> StatusResponse:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user