From 52fe7cbdfb751935690250bec143d5a422d2a77d Mon Sep 17 00:00:00 2001 From: oxid Date: Wed, 10 Feb 2021 20:29:34 +0300 Subject: [PATCH] Catch TimeoutError (long line fixed) --- socketio/redis_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketio/redis_manager.py b/socketio/redis_manager.py index 8b419ba..83093e8 100644 --- a/socketio/redis_manager.py +++ b/socketio/redis_manager.py @@ -79,7 +79,7 @@ class RedisManager(PubSubManager): # pragma: no cover self._redis_connect() return self.redis.publish(self.channel, pickle.dumps(data)) except (redis.exceptions.ConnectionError, - redis.exceptions.TimeoutError) as e: + redis.exceptions.TimeoutError): if retry: logger.error('Cannot publish to redis... retrying') retry = False