changeset 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 (2020-05-18)
parents 430204a3cc10
children 81c8910db91f
files sat_frontends/jp/cmd_pubsub.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):