Spaces:
Sleeping
Sleeping
meirk-brd
commited on
Commit
·
ebf4777
1
Parent(s):
1a9158e
detailed logging
Browse files
tool.py
CHANGED
|
@@ -50,4 +50,5 @@ class BrightDataScraperTool(Tool):
|
|
| 50 |
response.raise_for_status()
|
| 51 |
return response.text
|
| 52 |
except requests.exceptions.RequestException as exc:
|
| 53 |
-
|
|
|
|
|
|
| 50 |
response.raise_for_status()
|
| 51 |
return response.text
|
| 52 |
except requests.exceptions.RequestException as exc:
|
| 53 |
+
details = exc.response.text if getattr(exc, "response", None) is not None else ""
|
| 54 |
+
return json.dumps({"error": str(exc), "details": details})
|