third dahua xunxi speaker 优化

This commit is contained in:
caoqianming 2022-12-24 14:10:22 +08:00
parent ceb86617e2
commit 7e3a1f4f78
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ class SpClient:
# self.handle_log(result='success', response=ret) # self.handle_log(result='success', response=ret)
return 'success', ret return 'success', ret
except RequestException: except RequestException:
self.handle_log(result='error', response=ret) self.handle_log(result='error', response=None)
if raise_exception: if raise_exception:
raise APIException(**SP_REQUEST_ERROR) raise APIException(**SP_REQUEST_ERROR)
return 'error', SP_REQUEST_ERROR return 'error', SP_REQUEST_ERROR