Refactor trade downloading to handle exceptions only once

This commit is contained in:
Matthias
2019-08-29 12:56:10 +02:00
parent 476adf872a
commit 0d592f6c55
2 changed files with 67 additions and 67 deletions

View File

@@ -364,6 +364,7 @@ def download_trades_history(datadir: Optional[Path],
logger.debug("New Start: %s", trades[0]['datetime'])
logger.debug("New End: %s", trades[-1]['datetime'])
logger.info(f"New Amount of trades: {len(trades)}")
return True
except Exception as e:
logger.error(