Solshine commited on
Commit
b4d7f02
1 Parent(s): af523d4

Update query.py

Browse files
Files changed (1) hide show
  1. query.py +1 -1
query.py CHANGED
@@ -90,7 +90,7 @@ class VectaraQuery():
90
 
91
  try:
92
  self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
93
- except error:
94
  return 'Sorry, something went wrong. Please try again later.'
95
 
96
  pattern = r'\[\d{1,2}\]'
 
90
 
91
  try:
92
  self.conv_id = res['responseSet'][0]['summary'][0]['chat']['conversationId']
93
+ except (TypeError):
94
  return 'Sorry, something went wrong. Please try again later.'
95
 
96
  pattern = r'\[\d{1,2}\]'