From 482e5a9ab140185dba5dc075db3f36183d7c98cb Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Fri, 13 Oct 2023 22:46:37 -0400 Subject: [PATCH] also do peak post processing for cancellation in `FullNode.short_sync_batch()` --- chia/full_node/full_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chia/full_node/full_node.py b/chia/full_node/full_node.py index 8b6985b43f08..6765ecd24c23 100644 --- a/chia/full_node/full_node.py +++ b/chia/full_node/full_node.py @@ -555,7 +555,7 @@ async def short_sync_batch(self, peer: WSChiaConnection, start_height: uint32, t peer, ) await self.peak_post_processing_2(peak_fb, peer, state_change_summary, ppp_result) - except Exception: + except (asyncio.CancelledError, Exception): # Still do post processing after cancel (or exception) peak_fb = await self.blockchain.get_full_peak() assert peak_fb is not None