We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4121114 commit 70c902aCopy full SHA for 70c902a
llm_guard/evaluate.py
@@ -92,7 +92,7 @@ def scan_output(
92
results_valid = {}
93
results_score = {}
94
95
- if len(scanners) == 0 or output.strip() == "":
+ if len(scanners) == 0 or output is None or output.strip() == "":
96
return sanitized_output, results_valid, results_score
97
98
start_time = time.time()
0 commit comments