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