Add exception handling to all exchange functions

This commit is contained in:
enenn
2018-02-09 19:15:54 +01:00
parent f2215182dd
commit 478c3e299e
2 changed files with 48 additions and 17 deletions

View File

@@ -246,6 +246,7 @@ def test_get_ticker_history(default_conf, mocker):
5, # volume (in quote currency)
]
]
api_mock.hasFetchOHLVC = MagicMock(return_value=True)
api_mock.fetch_ohlcv = MagicMock(return_value=tick)
mocker.patch('freqtrade.exchange._API', api_mock)