Commit 7f5517d
fix(fastapi): inherit from SerializationFailure for Odoo 19 retrying (#53)
Odoo 19's retrying() uses isinstance checks against
PG_CONCURRENCY_EXCEPTIONS_TO_RETRY instead of pgcode-based checks.
FakeConcurrentUpdateError inherited from OperationalError (a sibling of
SerializationFailure), so isinstance returned False and the exception
was re-raised instead of retried.1 parent fc4ce29 commit 7f5517d
2 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| |||
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | | - | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
| |||
0 commit comments