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