FIX: Redis pub/sub error can also raise a ValueError on close.

This commit is contained in:
Fabio Manganiello 2024-01-19 22:29:29 +01:00
parent 39d5c48088
commit 7d362cae1a
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -125,7 +125,7 @@ class PubSubMixin:
continue continue
yield Message(data=msg.get('data', b''), channel=channel) yield Message(data=msg.get('data', b''), channel=channel)
except (AttributeError, RedisConnectionError): except (AttributeError, ValueError, RedisConnectionError):
return return
def _pubsub_close(self): def _pubsub_close(self):