Skip to content

The agent that grows with you

fix(photon): log the sent-text lookup failure instead of swallowing it

kshitijk4poor149f39fc9fb7
diff --git a/plugins/platforms/photon/adapter.py b/plugins/platforms/photon/adapter.py
index 1e0e8b89e94..e0f7dc13039 100644
--- a/plugins/platforms/photon/adapter.py
+++ b/plugins/platforms/photon/adapter.py
@@ -532,6 +532,7 @@ def _lookup_sent_text(chat_id: Optional[str], message_id: Optional[str]) -> Opti
from gateway import rich_sent_store
return rich_sent_store.lookup(_sent_text_key(chat_id), message_id)
except Exception:
+ logger.debug("[photon] sent-text index lookup failed", exc_info=True)
return None