third dahua xunxi speaker 优化
This commit is contained in:
parent
ceb86617e2
commit
7e3a1f4f78
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue