Skip to content

Commit

Permalink
Revert "[Mod] 添加解析出错输出信息"
Browse files Browse the repository at this point in the history
This reverts commit 8d76ac5.
  • Loading branch information
vnpy committed Apr 23, 2023
1 parent 6c52fa9 commit 2122199
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vnpy_tap/gateway/tap_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,7 @@ def send_order(self, req: OrderRequest) -> str:
}

error_id, session, byte_id = self.insertOrder(order_req) # byte_id是bytes类型数据

try:
order_id = byte_id.decode()
except UnicodeDecodeError:
print("TAP接口返回的本地委托号字符串解析出错:", byte_id)
raise
order_id = byte_id.decode()

if self.client_id in order_id:
order_id = order_id.replace(f"#{self.client_id}#", "")
Expand Down

0 comments on commit 2122199

Please sign in to comment.