Skip to content

Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.

fix: empty-result errors state what happened, not a guessed cause

Pnante2f4c0dc61f0
diff --git a/agent_reach/channels/reddit.py b/agent_reach/channels/reddit.py
index f7d7dcaa..22997e0d 100644
--- a/agent_reach/channels/reddit.py
+++ b/agent_reach/channels/reddit.py
@@ -20,7 +20,7 @@ _REDDIT_LOGIN_HINT = (
def _reddit(args, timeout: float) -> list:
items = opencli_items(opencli_call("reddit", list(args), timeout=timeout, login_hint=_REDDIT_LOGIN_HINT))
if not items:
- raise ReachError(UPSTREAM_BROKEN, "OpenCLI returned nothing; the page most likely did not load")
+ raise ReachError(UPSTREAM_BROKEN, "OpenCLI finished but returned no items")
return items
diff --git a/agent_reach/channels/twitter.py b/agent_reach/channels/twitter.py
index 27b68045..47b09442 100644
--- a/agent_reach/channels/twitter.py
+++ b/agent_reach/channels/twitter.py
@@ -15,7 +15,7 @@ _TWITTER_LOGIN_HINT = (
def _x(args, timeout: float) -> list:
items = opencli_items(opencli_call("twitter", list(args), timeout=timeout, login_hint=_TWITTER_LOGIN_HINT))
if not items:
- raise ReachError(UPSTREAM_BROKEN, "OpenCLI returned nothing; the page most likely did not load")
+ raise ReachError(UPSTREAM_BROKEN, "OpenCLI finished but returned no items")
return items
diff --git a/agent_reach/channels/xiaohongshu.py b/agent_reach/channels/xiaohongshu.py
index 4da0df13..39bb53f2 100644
--- a/agent_reach/channels/xiaohongshu.py
+++ b/agent_reach/channels/xiaohongshu.py
@@ -72,7 +72,7 @@ class XiaoHongShuChannel(Channel):
if not items:
raise ReachError(
UPSTREAM_BROKEN,
- "OpenCLI returned no notes; the page most likely did not load",
+ "OpenCLI finished but returned no notes",
)
return items