0

Updated documentation and added an additional validation check for

improperly formatted crop zones.
This commit is contained in:
matrixhacker
2014-05-12 14:47:45 -04:00
parent b6ac54a2b6
commit bb1c4a7b85
2 changed files with 5 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ def validateCrop(value):
cropZones = []
for zone in value:
if len(zone) != 4:
if not isinstance(zone, tuple) or len(zone) != 4:
raise ValidationException("The value for the 'crop' setting must be an array of tuples of length 4")
a, b, c, d = tuple(int(x) for x in zone)