Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
@@ -1420,7 +1420,7 @@ def respond_to_chat(
|
|
1420 |
])
|
1421 |
|
1422 |
# --- End of main try block ---
|
1423 |
-
except Exception
|
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."
|