jrief / django-websocket-redis

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

AttributeError when there's no session in request #225

Open rybaczewa opened 7 years ago

rybaczewa commented 7 years ago

Subscription to Session Notification throws unhandled exception when request without a session is passed.

ws4redis/redis_store.py in _wrap_sessions at line 55:
'NoneType' object has no attribute 'session_key'

Not exactly sure about expected behaviour here, but looking at https://github.com/jrief/django-websocket-redis/issues/187 should it just continue to next iteration?