Update app.py
Browse files
app.py
CHANGED
@@ -198,7 +198,7 @@ def handle_message(data):
|
|
198 |
emit('response', chunk, room=request.sid)
|
199 |
except Exception as e:
|
200 |
print(f"Error during message handling: {e}")
|
201 |
-
emit('response',
|
202 |
|
203 |
|
204 |
# Home route
|
|
|
198 |
emit('response', chunk, room=request.sid)
|
199 |
except Exception as e:
|
200 |
print(f"Error during message handling: {e}")
|
201 |
+
emit('response', "An error occurred while processing your request." + str(e), room=request.sid)
|
202 |
|
203 |
|
204 |
# Home route
|