Return more info when encountering an invalid repetition_type in ArbitraryRepetition

pull/1/head
Jan Petykiewicz 6 years ago
parent 10ffcc18ea
commit acd4e96db0

@ -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:

Loading…
Cancel
Save