Browse Source

Catch TimeoutError (long line fixed)

pull/635/head
oxid 4 years ago
parent
commit
52fe7cbdfb
  1. 2
      socketio/redis_manager.py

2
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

Loading…
Cancel
Save