catch more errors when invalid session cookie, thanks Luca
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.8.2-stable+timestamp.2014.02.14.22.26.48
|
||||
Version 2.8.2-stable+timestamp.2014.02.14.22.30.06
|
||||
|
||||
@@ -168,7 +168,7 @@ def secure_loads(data, encryption_key, hash_key=None, compression_level=None):
|
||||
if compression_level:
|
||||
data = zlib.decompress(data)
|
||||
return pickle.loads(data)
|
||||
except (TypeError, pickle.UnpicklingError):
|
||||
except Exception, e:
|
||||
return None
|
||||
|
||||
### compute constant CTOKENS
|
||||
|
||||
Reference in New Issue
Block a user