diff options
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index 5f9b1a8..2299a06 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -150,6 +150,11 @@ class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms ti def supports(self, feature): return feature in self.features + def serialize(self): + if self.stanza is None: + raise ValueError('Unable to serialize DiscoInfo, no stanza found') + return str(self.stanza) + @property def node(self): try: |