Return more info when encountering an invalid repetition_type in ArbitraryRepetition

This commit is contained in:
Jan Petykiewicz 2018-07-21 13:36:38 -07:00
parent 10ffcc18ea
commit acd4e96db0

View File

@ -1220,7 +1220,7 @@ class ArbitraryRepetition:
x_displacements.append(x * mult) x_displacements.append(x * mult)
y_displacements.append(y * mult) y_displacements.append(y * mult)
else: else:
raise InvalidDataError('Invalid ArbitraryRepetition repetition_type') raise InvalidDataError('Invalid ArbitraryRepetition repetition_type: {}'.format(repetition_type))
return ArbitraryRepetition(x_displacements, y_displacements) return ArbitraryRepetition(x_displacements, y_displacements)
def write(self, stream: io.BufferedIOBase) -> int: def write(self, stream: io.BufferedIOBase) -> int: