acecalisto3 commited on
Commit
2bc3596
·
verified ·
1 Parent(s): c28151b

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +1 -1
app2.py CHANGED
@@ -1420,7 +1420,7 @@ def respond_to_chat(
1420
  ])
1421
 
1422
  # --- End of main try block ---
1423
- except Exception as e:
1424
  logger.error(f"Chatbot runtime error: {e}")
1425
  response = f"An internal error occurred while processing your request: {e}"
1426
  response += "\nPlease try rephrasing your question or clear the chat history."
 
1420
  ])
1421
 
1422
  # --- End of main try block ---
1423
+ except Exception, e:
1424
  logger.error(f"Chatbot runtime error: {e}")
1425
  response = f"An internal error occurred while processing your request: {e}"
1426
  response += "\nPlease try rephrasing your question or clear the chat history."