Skip to content
Snippets Groups Projects
Verified Commit 1f2b53b3 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed a serialization issue

parent 64850e78
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,11 @@ class Redis(Backend):
v = await r.get(key)
except KeyError:
raise self.NotFound(key)
return json.loads(v)
try:
return json.loads(v)
except TypeError:
# Null, empty string, etc.
return v
async def set(self, key, value):
r = await self.redis()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment