Alex Hall
aa88c156e6
(core) Don't swallow TypeErrors in functions like SUM
...
Summary: Math functions like SUM which call `_chain` were catching `TypeError`s raised by the iterable arguments themselves, e.g. `SUM(r.A / r.B for r in $group)` where `r.A / r.B` raises a `TypeError` would silently return wrong results. This diff narrows the `try/catch` to only check whether the argument is iterable as intended, but not catch errors from the process of iterating.
Test Plan: Added Python unit test.
Reviewers: jarek
Reviewed By: jarek
Differential Revision: https://phab.getgrist.com/D3679
2022-10-25 12:15:13 +02:00
..
2022-10-25 12:15:13 +02:00
2022-09-28 17:15:42 +02:00
2022-02-03 16:22:51 -05:00
2022-06-17 21:53:20 +02:00
2022-09-09 22:15:45 +02:00
2022-09-28 19:42:36 +02:00
2022-08-12 19:45:00 +02:00
2022-09-28 19:42:36 +02:00
2021-06-22 17:13:17 +02:00
2022-10-17 13:38:21 +02:00
2022-09-28 19:42:36 +02:00
2022-08-12 19:45:00 +02:00
2022-08-12 19:45:00 +02:00
2022-05-24 22:29:20 +02:00
2022-06-17 21:53:20 +02:00
2022-09-28 19:42:36 +02:00
2022-10-17 13:38:21 +02:00
2022-02-04 20:28:13 +02:00
2022-08-12 19:45:00 +02:00
2022-09-10 07:07:45 +02:00
2022-10-24 20:10:08 +02:00
2022-09-20 17:22:28 +02:00
2022-10-17 13:38:21 +02:00
2022-09-29 08:59:42 -07:00
2022-10-24 20:10:08 +02:00
2022-08-12 19:45:00 +02:00
2022-07-14 12:09:56 +02:00
2022-10-04 15:19:28 +02:00
2021-06-18 15:42:20 +02:00
2022-09-09 22:15:45 +02:00
2022-07-08 18:56:41 +02:00
2022-09-09 22:15:45 +02:00
2022-08-24 14:49:33 +02:00
2022-05-25 16:21:04 +02:00
2022-10-25 12:15:13 +02:00
2022-08-12 19:45:00 +02:00
2022-10-24 20:10:08 +02:00
2022-10-04 15:19:28 +02:00
2021-06-30 16:56:09 +02:00
2022-06-17 21:53:20 +02:00
2022-08-09 20:11:36 +02:00
2022-05-23 21:06:18 +02:00
2022-09-07 18:02:02 +02:00
2022-09-07 18:02:02 +02:00
2022-07-14 12:09:56 +02:00
2022-09-09 22:15:45 +02:00
2022-07-14 12:09:56 +02:00
2020-12-15 16:39:56 -05:00
2022-10-04 15:19:28 +02:00
2022-09-09 22:15:45 +02:00
2022-10-04 15:19:28 +02:00
2022-09-29 08:59:42 -07:00
2022-09-07 14:15:34 -04:00
2022-10-04 15:19:28 +02:00
2022-09-29 08:59:42 -07:00