final ohlc bugfix
This commit is contained in:
@@ -287,10 +287,11 @@ class OHLCFileSeries:
|
||||
os.makedirs(os.path.dirname(quote_filename), exist_ok=True)
|
||||
self.quote_file = open(quote_filename, 'bw')
|
||||
line = None
|
||||
try:
|
||||
start, old_time, old_price = line.split(',')
|
||||
except ValueError:
|
||||
line = None
|
||||
if line:
|
||||
try:
|
||||
start, old_time, old_price = line.split(',')
|
||||
except ValueError:
|
||||
line = None
|
||||
if line:
|
||||
# noinspection PyUnboundLocalVariable
|
||||
self.series_start = from_timestamp(int(start))
|
||||
|
||||
Reference in New Issue
Block a user