From eb14005fcf1242a9dbdc01b69cc77863c304b76f Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 29 Aug 2016 12:08:12 +0000 Subject: [PATCH] Fix: as JSON decode needs a string, the empty list is a string. --- bin/packages/Paste.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/packages/Paste.py b/bin/packages/Paste.py index d91018bd..6d18e846 100755 --- a/bin/packages/Paste.py +++ b/bin/packages/Paste.py @@ -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): """