Fix: as JSON decode needs a string, the empty list is a string.

pull/81/head
Alexandre Dulaunoy 2016-08-29 12:08:12 +00:00
parent 7d4d2e223a
commit eb14005fcf
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class Paste(object):
def _get_p_duplicate(self):
self.p_duplicate = self.store.hget(self.p_path, "p_duplicate")
return self.p_duplicate if self.p_duplicate is not None else []
return self.p_duplicate if self.p_duplicate is not None else '[]'
def save_all_attributes_redis(self, key=None):
"""