Update app.py
Browse filesadded debugging
app.py
CHANGED
|
@@ -29,7 +29,9 @@ def get_news_headlines(headlines: str)-> str:
|
|
| 29 |
results = hl.run(f"{headlines} news")
|
| 30 |
return f"The current news headlines are {results}"
|
| 31 |
except Exception as e:
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
|
| 34 |
@tool
|
| 35 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 29 |
results = hl.run(f"{headlines} news")
|
| 30 |
return f"The current news headlines are {results}"
|
| 31 |
except Exception as e:
|
| 32 |
+
import traceback
|
| 33 |
+
traceback.print_exc() # dumps full stack to your logs
|
| 34 |
+
return f"Error fetching news headlines: {e}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
def get_current_time_in_timezone(timezone: str) -> str:
|