Return list not None

This commit is contained in:
Matthias 2019-01-19 20:21:33 +01:00
parent 4e760e1a5e
commit b48430f922

View File

@ -588,7 +588,7 @@ class Exchange(object):
data = sorted(data, key=lambda x: x[0])
except IndexError:
logger.exception("Error loading %s. Result was %s.", pair, data)
return pair, None
return pair, []
logger.debug("done fetching %s ...", pair)
return pair, data