Update ctpGateway.py
add f.close()
This commit is contained in:
parent
8e4f9121a1
commit
f605478654
@ -118,6 +118,7 @@ class CtpGateway(VtGateway):
|
||||
|
||||
# 解析json文件
|
||||
setting = json.load(f)
|
||||
f.close()
|
||||
try:
|
||||
userID = str(setting['userID'])
|
||||
password = str(setting['password'])
|
||||
@ -1503,4 +1504,4 @@ class CtpTdApi(TdApi):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user