Spaces:
Sleeping
Sleeping
Update routers/scraping_router.py
Browse files
routers/scraping_router.py
CHANGED
@@ -50,7 +50,7 @@ async def generate_cheerio_script(
|
|
50 |
else:
|
51 |
raise HTTPException(
|
52 |
status_code=422,
|
53 |
-
detail="No valid Cheerio script found in the response"
|
54 |
)
|
55 |
|
56 |
except Exception as e:
|
|
|
50 |
else:
|
51 |
raise HTTPException(
|
52 |
status_code=422,
|
53 |
+
detail=f"No valid Cheerio script found in the response: {response}" if response
|
54 |
)
|
55 |
|
56 |
except Exception as e:
|