im commited on
Commit
f9480cf
·
1 Parent(s): 97b7ebb

show exception message

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -240,6 +240,8 @@ def main() -> None:
240
  else:
241
  show_question_input()
242
  except Exception as e:
 
 
243
  st.warning("Whoops, looks like a hiccup in the system! But no worries, our tech wizards are already on the case, working their magic. In the meantime, how about giving it another shot?")
244
  if st.button("Give It Another Go!"):
245
  st.experimental_rerun()
 
240
  else:
241
  show_question_input()
242
  except Exception as e:
243
+ with st.expander("exception"):
244
+ st.exception(e)
245
  st.warning("Whoops, looks like a hiccup in the system! But no worries, our tech wizards are already on the case, working their magic. In the meantime, how about giving it another shot?")
246
  if st.button("Give It Another Go!"):
247
  st.experimental_rerun()