omkarenator commited on
Commit
f9d4318
1 Parent(s): 8754f38

dont mask all exceptions

Browse files
autoagents/agents/search.py CHANGED
@@ -254,6 +254,6 @@ class ActionRunner:
254
  except Exception as e:
255
  self.ialogger.add_message({"error": str(e)})
256
  self.ialogger.save()
257
- await outputq.put(Exception("Something went wrong. Please try searching again."))
258
  return
259
  return output
 
254
  except Exception as e:
255
  self.ialogger.add_message({"error": str(e)})
256
  self.ialogger.save()
257
+ await outputq.put(e)
258
  return
259
  return output
autoagents/spaces/app.py CHANGED
@@ -106,7 +106,7 @@ async def run():
106
  st.warning(output)
107
  continue
108
  else:
109
- await cleanup(str(output))
110
  return
111
  try:
112
  output_fmt = literal_eval(output)
 
106
  st.warning(output)
107
  continue
108
  else:
109
+ await cleanup("Something went wrong. Please try searching again.")
110
  return
111
  try:
112
  output_fmt = literal_eval(output)