From beff6e2aedc57655170333c5ba235330b58354f1 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Thu, 12 Dec 2024 08:51:50 -0800 Subject: [PATCH] CHIA-2022: Fix problems with startup timing and the Datalayer processing loop (#19014) Catch some more exceptions when getting owned stores in DL loop --- chia/data_layer/data_layer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chia/data_layer/data_layer.py b/chia/data_layer/data_layer.py index 2e37e6a7b621..9ba8bbff1cf4 100644 --- a/chia/data_layer/data_layer.py +++ b/chia/data_layer/data_layer.py @@ -920,10 +920,14 @@ async def periodically_manage_data(self) -> None: # Need this to make sure we process updates and generate DAT files try: owned_stores = await self.get_owned_stores() - except ValueError: + except (ValueError, aiohttp.client_exceptions.ClientConnectorError): # Sometimes the DL wallet isn't available, so we can't get the owned stores. # We'll try again next time. owned_stores = [] + except Exception as e: + self.log.error(f"Exception while fetching owned stores: {type(e)} {e} {traceback.format_exc()}") + owned_stores = [] + subscription_store_ids = {subscription.store_id for subscription in subscriptions} for record in owned_stores: store_id = record.launcher_id