Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/cashew_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ def cmd_context(args):
"exclude_tags": exclude,
})
if resp and resp.get("ok"):
context = resp.get("result")
result = resp.get("result")
if result: # non-empty string means daemon succeeded
context = result
else:
logger.debug("daemon returned empty context, falling back to in-process")
elif resp and not resp.get("ok"):
logger.warning(f"daemon error, falling back: {resp.get('error')}")
except Exception as e:
Expand Down
Loading