Backtrader 188.8.131.52 - Is docheckover declaration missing in resamplerfilter.py __call__
you last edited by
Running with backtrader-master-184.108.40.206, my program quit everytime after running for a little while with the following message:
..beta/lib/python3.5/site-packages/backtrader/resamplerfilter.py", line 650, in call
UnboundLocalError: local variable 'docheckover' referenced before assignment
Without knowing the actual use of the variable, I added the following and looks like can temporarily fix the issue.
def __call__(self, data, fromcheck=False, forcedata=None): consumed = False onedge = False takinglate = False # ADD HERE docheckover = False
This is an error introduced for the trading calendar integration.
Will be addressed shortly.
Affecting only replaying. This commit should alleviate the situation