Update app.py
Browse files
app.py
CHANGED
@@ -111,6 +111,13 @@ def search_duckduckgo(topic: str, max_results: int = 1) -> list:
|
|
111 |
})
|
112 |
print(f" Full content (or placeholder/error): {full_content[:200]}...") # Print a snippet of fetched content
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
|
116 |
|
|
|
111 |
})
|
112 |
print(f" Full content (or placeholder/error): {full_content[:200]}...") # Print a snippet of fetched content
|
113 |
|
114 |
+
except Exception as e:
|
115 |
+
print(f"An error occurred during the search or content fetching process: {str(e)}")
|
116 |
+
# Optionally, return partial results or an empty list depending on desired error handling
|
117 |
+
# return detailed_results_list # Could return what was processed so far
|
118 |
+
|
119 |
+
return detailed_results_list
|
120 |
+
|
121 |
|
122 |
|
123 |
|