Commit 4cd4cc0
committed
Fix error handling in client to properly propagate MemoryNotFoundError
The _handle_http_error method raises exceptions but the code was
re-raising the original HTTPStatusError, preventing get_or_create_working_memory
from catching MemoryNotFoundError and creating new sessions.
Changes:
- Remove redundant raise statements after _handle_http_error calls
- Change _handle_http_error return type to NoReturn for mypy
- Add test to verify 404 handling works correctly
- Bump version to 0.12.31 parent f1a3611 commit 4cd4cc0
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| |||
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
| |||
0 commit comments