diff --git a/apps/common/utils.py b/apps/common/utils.py index 5de10b129..d73c094ec 100644 --- a/apps/common/utils.py +++ b/apps/common/utils.py @@ -72,6 +72,8 @@ class Signer(metaclass=Singleton): return s.dumps(value) def unsign(self, value): + if value is None: + return value s = JSONWebSignatureSerializer(self.secret_key) try: return s.loads(value)