We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e76b3d commit ca5dd05Copy full SHA for ca5dd05
langchain/tests/test_retrievers.py
@@ -180,10 +180,9 @@ def test_retrieve_init_args(
180
if len(docs) == 2:
181
break
182
except Exception as e:
183
- logging.exception("Error during retrieval: %s", e)
184
if "503" in str(e):
185
continue
186
- raise e
+ raise RuntimeError(e) from e
187
188
if time.time() - start > 180:
189
msg = "Docs not retrieved in time"
@@ -211,10 +210,9 @@ def test_retrieve_invoke_args(
211
210
212
213
214
215
216
217
218
219
220
raise RuntimeError(msg)
0 commit comments