catch more errors when invalid session cookie, thanks Luca

This commit is contained in:
mdipierro
2014-02-14 22:31:05 -06:00
parent cb23f8635a
commit f60846ea2e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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