Make mypy happy

This commit is contained in:
hroff-1902 2019-12-16 23:25:57 +03:00
parent a6fc743d85
commit 0277cd82ea

View File

@ -295,6 +295,11 @@ def _download_pair_history(datadir: Path,
:param timerange: range of time to download
:return: bool with success state
"""
if not exchange:
raise OperationalException(
"Exchange needs to be initialized when downloading pair history data"
)
try:
logger.info(
f'Download history data for pair: "{pair}", timeframe: {timeframe} '