mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(permissions): handle None response from ACP request_permission
This commit is contained in:
parent
027751606a
commit
ea06104a3c
2 changed files with 17 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ def make_approval_callback(
|
|||
logger.warning("Permission request timed out or failed: %s", exc)
|
||||
return "deny"
|
||||
|
||||
if response is None:
|
||||
return "deny"
|
||||
|
||||
outcome = response.outcome
|
||||
if isinstance(outcome, AllowedOutcome):
|
||||
option_id = outcome.option_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue