@莫邪的救赎 感谢回应。不过这句可能不是……
```
2016-07-18 09:30:00 - ERROR - 模拟盘运行出错了, 如果不知道原因, 请阅读: 'https://www.joinquant.com/api#模拟盘注意事项' 和系统更新日志: 'https://www.joinquant.com/post/553'
2016-07-18 09:30:00 - ERROR - Traceback (most recent call last):
File "kuanke/user_space.py", line 139, in exec_msg
return getattr(self, func)(*msg['args'], **msg['kwargs'])
File "kuanke/user_space.py", line 281, in handle_data
self.func_handle_data(self.user_context, user_space_api.SecuritiesData())
File "user_code.py", line 174, in handle_data
port_weight(context)
File "user_code.py", line 161, in port_weight
ordertargetvalue(stock, optv['x'][g.buy_stock.index(stock)]*port_value)
File "user_code.py", line 38, in ordertargetvalue
for i in user.position:
AttributeError: 'NoneType' object has no attribute 'position'
```
怎么看都是user序列化失败未保存……
不影响是因为程序调仓依然反应到雪球组合么?
2016-07-18