From 31025b8c52cf57ea5bc347f2e61512f9228a1000 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 22 May 2017 19:51:54 +0800 Subject: [PATCH] =?UTF-8?q?[bugfix]=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E5=AF=86=E7=A0=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/utils.py b/apps/common/utils.py index 516b70987..45aac13c8 100644 --- a/apps/common/utils.py +++ b/apps/common/utils.py @@ -63,7 +63,7 @@ class Signer(object): try: return s.loads(value) except BadSignature: - return None + return {} def sign_t(self, value, expires_in=3600): s = TimedJSONWebSignatureSerializer(self.secret_key, expires_in=expires_in) @@ -74,7 +74,7 @@ class Signer(object): try: return s.loads(value) except (BadSignature, SignatureExpired): - return None + return {} def date_expired_default():