Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0060.py @ 4006:9456852d3286
plugin XEP-0060: fix namespace on node subscriptions request
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 16 Mar 2023 12:29:34 +0100 |
parents | 722c25818778 |
children | 524856bd7b19 |
comparison
equal
deleted
inserted
replaced
4005:54a6b44f173b | 4006:9456852d3286 |
---|---|
1454 request.nodeIdentifier = nodeIdentifier | 1454 request.nodeIdentifier = nodeIdentifier |
1455 | 1455 |
1456 iq_elt = await request.send(client.xmlstream) | 1456 iq_elt = await request.send(client.xmlstream) |
1457 try: | 1457 try: |
1458 subscriptions_elt = next( | 1458 subscriptions_elt = next( |
1459 iq_elt.pubsub.elements(pubsub.NS_PUBSUB, "subscriptions") | 1459 iq_elt.pubsub.elements(pubsub.NS_PUBSUB_OWNER, "subscriptions") |
1460 ) | 1460 ) |
1461 except StopIteration: | 1461 except StopIteration: |
1462 raise ValueError( | 1462 raise ValueError( |
1463 _("Invalid result: missing <subscriptions> element: {}").format( | 1463 _("Invalid result: missing <subscriptions> element: {}").format( |
1464 iq_elt.toXml | 1464 iq_elt.toXml |