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