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