Commit 3c83249
committed
Fix Issue #75: Catch TypeError in marshalling
When marshalling receiving a `MarshallingError` is much more useful than
receiving the underlying exception directly as the `MarshallingError`
has context about where it happened and it means all marshalling issues
can be handled in one place.
This change also catches `TypeError`s from the int and float formatters
so that they are correctly turned into `MarshallingError`s.1 parent 24adcbc commit 3c83249
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
| |||
0 commit comments