[Del] remove useless code

This commit is contained in:
nanoric 2019-06-14 15:11:16 +08:00
parent 67a249b8c0
commit 720c61a7b6

View File

@ -65,8 +65,6 @@ def _check_error(none_return: bool = True,
error_code = error_info.ErrorID
if error_code != 0:
error_msg = error_info.ErrorMsg
if not error_msg:
error_msg = get_error_msg(error_code)
msg = f'{function_name} 中收到错误({error_code}){error_msg}'
if write_log:
self.gateway.write_log(msg)