pallets-eco / flask-session

Server side session extension for Flask
https://flask-session.readthedocs.io
BSD 3-Clause "New" or "Revised" License
501 stars 239 forks source link

When signing is not succesfull -> "cannot concatenate 'str' and 'NoneType' objects" #17

Closed victorgp closed 9 years ago

victorgp commented 9 years ago

Line 473 of https://github.com/fengsp/flask-session/blob/master/flask_session/sessions.py

try:
       sid = signer.unsign(sid)
except BadSignature:
      sid = None

store_id = self.key_prefix + sid

If BadSignature, store_id fails with: "cannot concatenate 'str' and 'NoneType' objects"

This happens in all classes, not only this one