Closed sosswald closed 7 years ago
self.edges[sub][topic].keys() returns a list, while next() expects an iterator, which leads to a TypeError: list object is not an iterator exception. Fixed by taking element 0 of the key list instead.
self.edges[sub][topic].keys()
next()
TypeError: list object is not an iterator
Sorry, I forgot that this solution only works for Python 2. Superseded by pull request #439 which is also compatible with Python 3.
self.edges[sub][topic].keys()
returns a list, whilenext()
expects an iterator, which leads to aTypeError: list object is not an iterator
exception. Fixed by taking element 0 of the key list instead.