From ff1df1138484b6e814782656ba19760d1a9845c6 Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Tue, 19 Dec 2017 14:05:45 +0100 Subject: [PATCH] BUG: minor fix in Poloniex curate script --- catalyst/curate/poloniex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catalyst/curate/poloniex.py b/catalyst/curate/poloniex.py index 824b5e58..c67e03bc 100644 --- a/catalyst/curate/poloniex.py +++ b/catalyst/curate/poloniex.py @@ -193,7 +193,8 @@ class PoloniexCurator(object): for this currencyPair ''' try: - if('end_file' in locals() and end_file + 3600 < end): + 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)