BUG: minor fix in Poloniex curate script

This commit is contained in:
Victor Grau Serrat
2017-12-19 14:05:45 +01:00
committed by lacabra
parent 803823eac0
commit 79e5dec813
+3 -2
View File
@@ -181,8 +181,9 @@ class PoloniexCurator(object):
our existing TradeHistory until the first transaction
for this currencyPair
'''
try:
if( 'end_file' in locals() and end_file + 3600 < end):
try:
if(temp is not None
or ('end_file' in locals() and end_file + 3600 < end)):
if (temp is None):
temp = os.tmpfile()
tempcsv = csv.writer(temp)