Skip to content

Commit

Permalink
CHIA-2022: Fix problems with startup timing and the Datalayer process…
Browse files Browse the repository at this point in the history
…ing loop (#19014)

Catch some more exceptions when getting owned stores in DL loop
  • Loading branch information
emlowe authored Dec 12, 2024
1 parent 2982667 commit beff6e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chia/data_layer/data_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beff6e2

Please sign in to comment.