From c5c828a4ed0234c34ce5bd2c3850b5fb1f2cdaaa Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Tue, 21 Apr 2026 20:38:05 -0700 Subject: [PATCH] Bypass error on fail-to-unload-contact-because-it's-not-there --- app/radio_sync.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/radio_sync.py b/app/radio_sync.py index 0a391e5..032e109 100644 --- a/app/radio_sync.py +++ b/app/radio_sync.py @@ -1273,7 +1273,12 @@ async def _reconcile_radio_contacts_in_background( continue budget -= 1 - if remove_result.type == EventType.OK: + not_found = ( + remove_result.type != EventType.OK + and isinstance(remove_result.payload, dict) + and remove_result.payload.get("error_code") == 2 + ) + if remove_result.type == EventType.OK or not_found: radio_contacts.pop(public_key, None) _evict_removed_contact_from_library_cache(mc, public_key) removed += 1