Skip to content

Commit 5f7807f

Browse files
status code handle
1 parent 052c9e9 commit 5f7807f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Framework/MainDriverApi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,10 @@ def send_dom_variables():
12581258
data=json.dumps(data),
12591259
verify=False
12601260
)
1261-
if res.status_code != 200:
1261+
if res.status_code == 500:
12621262
CommonUtil.ExecLog(sModuleInfo, res.json()["info"], 3)
1263+
elif res.status_code == 404:
1264+
CommonUtil.ExecLog(sModuleInfo, 'The chatbot API does not exist, server upgrade needed', 2)
12631265
return
12641266
except:
12651267
CommonUtil.Exception_Handler(sys.exc_info())

0 commit comments

Comments
 (0)