Skip to content

Commit b4857a5

Browse files
committed
fix(make more robust process_prompt):
1 parent 85d5c67 commit b4857a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agentic_security/probe_actor/fuzzer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ async def process_prompt(
8484
logger.error(f"Jason error: {json_decode_error}")
8585
errors.append((module_name, prompt, "?", str(json_decode_error)))
8686
return tokens, True
87+
except Exception:
88+
logger.exception("Oups")
89+
return tokens, False
8790

8891

8992
async def process_prompt_batch(

0 commit comments

Comments
 (0)