Mercurial > libervia-backend
diff sat_frontends/jp/cmd_encryption.py @ 3102:7574f795bd1e
core, bridge: encryptionPluginsGet now returns a serialised list + added "directed" in metadata
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 30 Dec 2019 20:44:04 +0100 |
parents | fee60f17ebac |
children | 9d0df638c8b4 |
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_encryption.py Mon Dec 30 20:44:02 2019 +0100 +++ b/sat_frontends/jp/cmd_encryption.py Mon Dec 30 20:44:04 2019 +0100 @@ -49,7 +49,8 @@ async def start(self): try: - plugins = await self.host.bridge.encryptionPluginsGet() + plugins_ser = await self.host.bridge.encryptionPluginsGet() + plugins = data_format.deserialise(plugins_ser, type_check=list) except Exception as e: self.disp(f"can't retrieve plugins: {e}", error=True) self.host.quit(C.EXIT_BRIDGE_ERRBACK)