Skip to content

Commit 359ed4b

Browse files
NestorTejeromvantellingen
authored andcommitted
Align error message with the variable being used
1 parent 5ed836c commit 359ed4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zeep/xsd/elements/element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def validate(self, value, render_path=None):
225225
path=render_path)
226226
elif self.max_occurs != 'unbounded' and len(value) > self.max_occurs:
227227
raise exceptions.ValidationError(
228-
"Expected at most %d items (maxOccurs check)" % self.min_occurs,
228+
"Expected at most %d items (maxOccurs check)" % self.max_occurs,
229229
path=render_path)
230230

231231
for val in value:

0 commit comments

Comments
 (0)