Johnny Lee commited on
Commit
ef56439
·
1 Parent(s): 8097ef4
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -410,7 +410,9 @@ async def respond(
410
  try:
411
  if request.username is None:
412
  logout(request)
413
- raise RuntimeError(f"Username not found for request: {request.request}")
 
 
414
  if state is None:
415
  if chatbot_mode == ChatbotMode.DEBATE_PARTNER:
416
  new_session = ChatSession.new(
 
410
  try:
411
  if request.username is None:
412
  logout(request)
413
+ raise gr.Error(
414
+ "Username not found for request. Please try to refresh the page to re-login."
415
+ )
416
  if state is None:
417
  if chatbot_mode == ChatbotMode.DEBATE_PARTNER:
418
  new_session = ChatSession.new(