Fix error Message for too large arrays
Change-Id: I69b6789ef9f463565918a395120b8f5ad3494b20
This commit is contained in:
parent
b17030afa2
commit
d09634a55d
@ -778,7 +778,7 @@ class ArrayOf(DataType):
|
|||||||
self.minlen)
|
self.minlen)
|
||||||
if self.maxlen is not None and len(value) > self.maxlen:
|
if self.maxlen is not None and len(value) > self.maxlen:
|
||||||
raise BadValueError(
|
raise BadValueError(
|
||||||
'Array too big, holds at most %d elements!' % self.minlen)
|
'Array too big, holds at most %d elements!' % self.maxlen)
|
||||||
# apply subtype valiation to all elements and return as list
|
# apply subtype valiation to all elements and return as list
|
||||||
return tuple(self.members(elem) for elem in value)
|
return tuple(self.members(elem) for elem in value)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user