Commit 3736579
Align exceptions between py3 and python
Summary:
- During connection establishment if Thrift python receives a C++ exception it simply throws it. This shows up as RuntimeError in python
- Thirft-py3 used to gracefully convert C++ exceptions to python exceptions using a function
- Use the same function in thrift python to align exceptions.
Reviewed By: ahilger
Differential Revision: D75506095
fbshipit-source-id: 0da292d2d210fe14e95a7bc7c006f1b35b4050ce1 parent ae772ea commit 3736579
File tree
2 files changed
+2
-6
lines changed- thrift/lib
- py3/test/auto_migrate
- python/client
2 files changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
134 | | - | |
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 257 | + | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
0 commit comments