diff --git a/fakenewsredis.py b/fakenewsredis.py index 79930f1..f41b3f6 100644 --- a/fakenewsredis.py +++ b/fakenewsredis.py @@ -1675,7 +1675,7 @@ def publish(self, channel, message): ``message`` to them for the given ``channel``. """ count = 0 - for i, ps in enumerate(self._pubsubs): + for i, ps in list(enumerate(self._pubsubs)): if not ps.subscribed: del self._pubsubs[i] continue