Mercurial > libervia-backend
diff sat_frontends/jp/cmd_pubsub.py @ 3275:55eeb0dfd313
jp (pubsub): fixed arguments returned when item has no payload
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 18 May 2020 23:43:06 +0200 |
parents | 559a625a236b |
children | 77177b13ff54 |
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_pubsub.py Mon May 18 23:41:36 2020 +0200 +++ b/sat_frontends/jp/cmd_pubsub.py Mon May 18 23:43:06 2020 +0200 @@ -911,7 +911,7 @@ 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):