Spaces:
Sleeping
Sleeping
Update tools/web_search.py
Browse files- tools/web_search.py +2 -2
tools/web_search.py
CHANGED
|
@@ -50,7 +50,7 @@ class DuckDuckGoSearchTool(Tool):
|
|
| 50 |
|
| 51 |
|
| 52 |
if not results:
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
|
|
|
|
| 50 |
|
| 51 |
|
| 52 |
if not results:
|
| 53 |
+
raise RuntimeError("Results were returned but none contained valid URLs.")
|
| 54 |
|
| 55 |
+
return results
|
| 56 |
|