mo-ali-nlp commited on
Commit
d49af24
·
verified ·
1 Parent(s): 3205257

Update app.py

Browse files

added debugging

Files changed (1) hide show
  1. app.py +3 -1
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
- return f"Error fetching news headlines"
 
 
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: