Increase FreqtradeBot() code coverage

This commit is contained in:
Gerald Lonlas
2018-03-05 00:11:13 -08:00
parent ba664c4341
commit 1d43e04725
2 changed files with 86 additions and 24 deletions

View File

@@ -115,7 +115,7 @@ class FreqtradeBot(object):
if new_state == State.STOPPED:
time.sleep(1)
elif new_state == State.RUNNING:
min_secs = self.config['internals'].get(
min_secs = self.config.get('internals', {}).get(
'process_throttle_secs',
Constants.PROCESS_THROTTLE_SECS
)