mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-02 03:23:00 +02:00
Bypass error on fail-to-unload-contact-because-it's-not-there
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user