Commit 0edb506
model.datatypes: add
During construction of a `Decimal`, an `InvalidOperation` exception
may occur. Since the user only expects a `ValueError` from this function,
because all other parsers only raise `ValueError`s, the `InvalidOperation`
error-type is handled and re-raised as a `ValueError`.
Fix #99Decimal parsing1 parent c356f89 commit 0edb506
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
551 | 561 | | |
552 | 562 | | |
553 | 563 | | |
| |||
0 commit comments