Closed kenorb closed 8 years ago
The build fails now with:
Traceback (most recent call last):
File "/home/travis/.wine/drive_c/Program Files (x86)/MetaTrader 4/history/downloads/scripts/convert_csv_to_mt.py", line 416, in <module>
FXT(CSV(args.inputFile), outputPath, timeframe, server, symbol, spread)
File "/home/travis/.wine/drive_c/Program Files (x86)/MetaTrader 4/history/downloads/scripts/convert_csv_to_mt.py", line 256, in __init__
header += pack('<i', int(firstUniBar['barTimestamp'])) # Modelling start date - date of the first tick.
TypeError: 'NoneType' object is not subscriptable
Not sure if that's related. Corrected CI tests (#50) which weren't failing before, because data conversion didn't happen.
The error is similar to the one fixed in the commit but completely different :)
As you can see in [1] it's possible that firstUniBar
isn't ever initialized if there are no ticks, and this happens because of #25
[1] https://github.com/FX31337/FX-BT-Scripts/blob/master/convert_csv_to_mt.py#L230,L244
File:
convert_csv_to_mt.py
This build shows the error:
This could be related to the recent changes.