Skip to content

Commit 6e5fd49

Browse files
Update zenguard.py
1 parent 3b09318 commit 6e5fd49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zenguard/zenguard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def detect(self, detectors: list[Detector], prompt: str):
118118
Uses detectors to evaluate the prompt and return the results.
119119
"""
120120
if prompt.isspace() or prompt == "":
121-
raise ValueError("Prompt must not be an empty string or whitespace string")
121+
raise ValueError("Prompt can't be empty.")
122122

123123
if len(detectors) == 0:
124124
raise ValueError("No detectors were provided")

0 commit comments

Comments
 (0)