Empty data entry on WebSocket raises KeyError
verata-veritatis opened this issue · 1 comments
verata-veritatis commented
>>> 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.
verata-veritatis commented
Error fixed in pybit 1.0.2.