From 720c61a7b6158a065b6e2e184529aca7a125eae4 Mon Sep 17 00:00:00 2001 From: nanoric Date: Fri, 14 Jun 2019 15:11:16 +0800 Subject: [PATCH] [Del] remove useless code --- vnpy/gateway/tora/td.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/vnpy/gateway/tora/td.py b/vnpy/gateway/tora/td.py index 67990c5f..d9ae02a8 100644 --- a/vnpy/gateway/tora/td.py +++ b/vnpy/gateway/tora/td.py @@ -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)