MusaR commited on
Commit
2f13b5b
·
verified ·
1 Parent(s): 0ab9683

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -224,3 +224,9 @@ try:
224
  st.session_state.messages.append({"role": "assistant", "content": f"Sorry, I encountered an error: {error_message}", "sources": []})
225
 
226
  print("--- app.py script finished a run ---")
 
 
 
 
 
 
 
224
  st.session_state.messages.append({"role": "assistant", "content": f"Sorry, I encountered an error: {error_message}", "sources": []})
225
 
226
  print("--- app.py script finished a run ---")
227
+
228
+ except Exception as e:
229
+ print(f"!!!!!!!!!! A FATAL ERROR OCCURRED DURING STARTUP !!!!!!!!!!")
230
+ import traceback
231
+ print(traceback.format_exc())
232
+ st.error(f"A fatal error occurred during startup. Please check the container logs. Error: {e}")