Update main.py
Browse files
main.py
CHANGED
|
@@ -59,6 +59,6 @@ async def get_data(url: str):
|
|
| 59 |
return data
|
| 60 |
except Exception as e:
|
| 61 |
raise HTTPException(status_code=500, detail=str(e))
|
| 62 |
-
|
| 63 |
return return {"title": title, "URL": links, "Content": text_content}
|
| 64 |
|
|
|
|
| 59 |
return data
|
| 60 |
except Exception as e:
|
| 61 |
raise HTTPException(status_code=500, detail=str(e))
|
| 62 |
+
else:
|
| 63 |
return return {"title": title, "URL": links, "Content": text_content}
|
| 64 |
|