jp (pubsub): fixed arguments returned when item has no payload

This commit is contained in:
Goffi 2020-05-18 23:43:06 +02:00
commit e1abce602f

View file

@ -911,7 +911,7 @@ class Edit(base.CommandBase, common.BaseEdit):
payload = item_elt[0]
except IndexError:
self.disp(_("Item has not payload"), 1)
return ""
return "", item_id
return etree.tostring(payload, encoding="unicode", pretty_print=True), item_id
async def start(self):