Commit 00211d5
authored
fix: Avoid catching non-exception; skip retry for ValueErrors from VertexAI (#470)
The `VertexAIVectorizer` attempts to handle an error from Google that,
it turns out, is not an exception despite being in the Google exceptions
module. This PR removes this catch, and adjusts retry logic to capture
the correct set of exceptions for VertexAI use. In particular, this
fixes an issue where using an invalid model name would break with an
unclear error - this now breaks as expected, by reporting that the
provided model name was not found.
fixes #4691 parent 5cdac13 commit 00211d5
File tree
3 files changed
+5
-11
lines changed- redisvl/utils/vectorize
- tests/integration
3 files changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| |||
233 | 229 | | |
234 | 230 | | |
235 | 231 | | |
236 | | - | |
| 232 | + | |
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
| |||
286 | 282 | | |
287 | 283 | | |
288 | 284 | | |
289 | | - | |
290 | | - | |
291 | 285 | | |
292 | 286 | | |
293 | 287 | | |
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
297 | | - | |
| 291 | + | |
298 | 292 | | |
299 | 293 | | |
300 | 294 | | |
| |||
311 | 305 | | |
312 | 306 | | |
313 | 307 | | |
314 | | - | |
315 | 308 | | |
316 | 309 | | |
317 | 310 | | |
| |||
329 | 322 | | |
330 | 323 | | |
331 | 324 | | |
332 | | - | |
333 | | - | |
334 | 325 | | |
335 | 326 | | |
336 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
0 commit comments