Commit f793217a authored by ale's avatar ale

fix compatibility hack with old file format

parent ffa22fa1
......@@ -30,8 +30,8 @@ def get_redis_connection():
def _compat_json_loads(s):
# Awful trick for backwards compatibility with very very old,
# incorrectly-encoded entries.
if s.startswith("{'"):
s = s.replace("'", '"')
if s.startswith("{'") or s.startswith("{u'"):
return eval(s)
return json.loads(s)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment