From 18f8686cdbf8dd3a3abfb2b81d1512478c3ee598 Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Sat, 31 Mar 2018 17:29:52 +0200 Subject: [PATCH] fix returncode for convert_file --- scripts/convert_backtestdata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/convert_backtestdata.py b/scripts/convert_backtestdata.py index 3c6c47f0d..024b3c9af 100755 --- a/scripts/convert_backtestdata.py +++ b/scripts/convert_backtestdata.py @@ -90,13 +90,13 @@ def convert_dataframe(frame: DataFrame): return list(list(x) for x in zip(*by_column)) -def convert_file(filename: str, filename_new: str): +def convert_file(filename: str, filename_new: str) -> None: """Converts a file from old format to ccxt format""" (pairdata, is_zip) = load_old_file(filename) - if pairdata and type(pairdata) is list and len(pairdata) > 0: + if pairdata and type(pairdata) is list: if type(pairdata[0]) is list: logger.error("pairdata for %s already in new format", filename) - return 1 + return frame = parse_old_backtest_data(pairdata) # Convert frame to new format