Skip to content

Commit 285fe96

Browse files
committed
Use Exception instead of undefined ValidationError
1 parent 60ee697 commit 285fe96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

l9format/l9format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def deserialize(self, value) -> decimal.Decimal:
4848

4949
return decimal.Decimal(value)
5050
except decimal.DecimalException:
51-
raise ValidationError("invalid decimal", value=value)
51+
raise Exception("invalid decimal", value=value)
5252

5353

5454
class L9HttpEvent(Model):

0 commit comments

Comments
 (0)