From f60846ea2ec4d6221d40019724e5620be9788465 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 14 Feb 2014 22:31:05 -0600 Subject: [PATCH] catch more errors when invalid session cookie, thanks Luca --- VERSION | 2 +- gluon/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 6ec9b55f..f9d746ef 100644 --- a/VERSION +++ b/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 diff --git a/gluon/utils.py b/gluon/utils.py index d05550b9..dbffeb4f 100644 --- a/gluon/utils.py +++ b/gluon/utils.py @@ -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