Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}")
|