Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_xep_0470.py @ 4263:2109d864a3e7
plugin XEP-470: Don't file configuration on `feature-not-implemented`.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Jun 2024 22:35:13 +0200 |
parents | 4b842c1fb686 |
children | 0d7bb4df2343 |
comparison
equal
deleted
inserted
replaced
4262:d366d90a71aa | 4263:2109d864a3e7 |
---|---|
192 # we auto-create the missing node | 192 # we auto-create the missing node |
193 await self._p.createNode( | 193 await self._p.createNode( |
194 client, service, node | 194 client, service, node |
195 ) | 195 ) |
196 node_config = await self._p.getConfiguration(client, service, node) | 196 node_config = await self._p.getConfiguration(client, service, node) |
197 elif e.condition == "forbidden": | 197 elif e.condition in ("forbidden", "feature-not-implemented"): |
198 node_config = self._p.make_configuration_form({}) | 198 node_config = self._p.make_configuration_form({}) |
199 else: | 199 else: |
200 raise e | 200 raise e |
201 try: | 201 try: |
202 # FIXME: check if this is the best publish_model option | 202 # FIXME: check if this is the best publish_model option |