ofermend commited on
Commit
5cff0d3
1 Parent(s): 7ff5239

Update query.py

Browse files
Files changed (1) hide show
  1. query.py +1 -1
query.py CHANGED
@@ -76,7 +76,7 @@ class VectaraQuery():
76
  print(f"DEBUG request body = {body}")
77
  print(f"DEBUG response summary = {res['responseSet'][0]['summary']}")
78
 
79
- ecode = res['responseSet'][0]['status'].get('code','')
80
  if ecode != '':
81
  print(f"Chat query failed with code {ecode}")
82
  if ecode == 'RESOURCE_EXHAUSTED':
 
76
  print(f"DEBUG request body = {body}")
77
  print(f"DEBUG response summary = {res['responseSet'][0]['summary']}")
78
 
79
+ ecode = res['responseSet'][0]['status'][0].get('code','')
80
  if ecode != '':
81
  print(f"Chat query failed with code {ecode}")
82
  if ecode == 'RESOURCE_EXHAUSTED':