CORVO-AI commited on
Commit
e1ad6ee
·
verified ·
1 Parent(s): 6af6a99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def chat_with_assistant(user_input, chat_history, bot_id, workspace_id):
131
  return assistant_content, bot_id, workspace_id
132
 
133
  # If we get a 403, it could be because the bot/workspace IDs are invalid/expired
134
- elif response.status_code == 403:
135
  raise Exception("Invalid or expired bot ID.")
136
 
137
  # Other errors
 
131
  return assistant_content, bot_id, workspace_id
132
 
133
  # If we get a 403, it could be because the bot/workspace IDs are invalid/expired
134
+ elif response.status_code == 400:
135
  raise Exception("Invalid or expired bot ID.")
136
 
137
  # Other errors