verata-veritatis/pybit

Empty data entry on WebSocket raises KeyError

verata-veritatis opened this issue · 1 comments

>>> ws.fetch(['position'])
Traceback (most recent call last):
    return [self.data[i].pop() for i in topics]
IndexError: pop from empty list

Need to handle this Exception by returning an empty list instead.

Error fixed in pybit 1.0.2.