Wallets: Catch errors during cleanup (#1829)
* jetz aba * catch RuntimeError
This commit is contained in:
@@ -37,7 +37,10 @@ class SparkWallet(Wallet):
|
||||
)
|
||||
|
||||
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}")
|
||||
|
||||
def __getattr__(self, key):
|
||||
async def call(*args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user