Merge pull request #384 from elya5/patch-1

Fix UnboundlocalError in disco_browser.py example
This commit is contained in:
Mike Taylor 2015-09-18 15:13:30 -04:00
commit 55114bcffe

View file

@ -94,7 +94,7 @@ class Disco(sleekxmpp.ClientXMPP):
info = self['xep_0030'].get_info(jid=self.target_jid, info = self['xep_0030'].get_info(jid=self.target_jid,
node=self.target_node, node=self.target_node,
block=True) block=True)
elif self.get in self.items_types: if self.get in self.items_types:
# The same applies from above. Listen for the # The same applies from above. Listen for the
# disco_items event or pass a callback function # disco_items event or pass a callback function
# if you need to process a non-blocking request. # if you need to process a non-blocking request.