From 295beeaac72cf8761a66044ea12dc5887ec3701f Mon Sep 17 00:00:00 2001 From: Navin Karkera Date: Thu, 28 Aug 2025 16:20:24 +0530 Subject: [PATCH] fix: exception while trying to check sync status of deleted upstream --- cms/lib/xblock/upstream_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/lib/xblock/upstream_sync.py b/cms/lib/xblock/upstream_sync.py index 076afef505a7..ebb8866a3a9e 100644 --- a/cms/lib/xblock/upstream_sync.py +++ b/cms/lib/xblock/upstream_sync.py @@ -124,7 +124,7 @@ def check_children_ready_to_sync(xblock_downstream): for child in downstream_children: if child.upstream: - child_upstream_link = UpstreamLink.get_for_block(child) + child_upstream_link = UpstreamLink.try_get_for_block(child) child_ready_to_sync = bool( child_upstream_link.upstream_ref and