Skip to content
Snippets Groups Projects
Commit 68983e87 authored by Bahtiar Gadimov's avatar Bahtiar Gadimov
Browse files

Fix assertion bug see also #12 thx @yann-l

parent ce030e75
No related branches found
No related tags found
No related merge requests found
......@@ -41,14 +41,14 @@ log = logging.getLogger('gajim.plugin_system.omemo')
class PublishNode(Node):
def __init__(self, node_str, data):
assert node_str is not None and data is Node
assert node_str is not None and isinstance(data, Node)
Node.__init__(self, tag='publish', attrs={'node': node_str})
self.addChild('item').addChild(node=data)
class PubsubNode(Node):
def __init__(self, data):
assert data is Node
assert isinstance(data, Node)
Node.__init__(self, tag='pubsub', attrs={'xmlns': NS_PUBSUB})
self.addChild(node=data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment