jrief / django-websocket-redis

Websockets for Django applications using Redis as message queue
http://django-websocket-redis.awesto.com/
MIT License
896 stars 222 forks source link

AttributeError when heartbeat is not set #187

Closed lordi closed 8 years ago

lordi commented 8 years ago
File "(..)python3.4/site-packages/ws4redis/wsgi_server.py" in __call__
  106.                         recvmsg = RedisMessage(websocket.receive())

File "(..)python3.4/site-packages/ws4redis/redis_store.py" in __new__
  73.                 if value != settings.WS4REDIS_HEARTBEAT.encode():

Exception Type: AttributeError
Exception Value: 'NoneType' object has no attribute 'encode'
Request data not supplied

I think one needs to check if WS4REDIS_HEARTBEAT is set at that place.