From 977fcc06324d93422cb19e1550b280cd04e36f82 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 18 Feb 2012 11:56:10 -0800 Subject: Fix instances of using undefined variables. --- sleekxmpp/plugins/xep_0030/disco.py | 2 +- sleekxmpp/plugins/xep_0030/static.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/plugins/xep_0030') diff --git a/sleekxmpp/plugins/xep_0030/disco.py b/sleekxmpp/plugins/xep_0030/disco.py index 2267401e..a6088635 100644 --- a/sleekxmpp/plugins/xep_0030/disco.py +++ b/sleekxmpp/plugins/xep_0030/disco.py @@ -754,7 +754,7 @@ class xep_0030(base_plugin): """ result = info if isinstance(info, Iq): - info = iq['disco_info'] + info = info['disco_info'] if not info['node']: if not info['identities']: if self.xmpp.is_component: diff --git a/sleekxmpp/plugins/xep_0030/static.py b/sleekxmpp/plugins/xep_0030/static.py index e0ac29c6..4972bdeb 100644 --- a/sleekxmpp/plugins/xep_0030/static.py +++ b/sleekxmpp/plugins/xep_0030/static.py @@ -11,7 +11,7 @@ import threading import sleekxmpp from sleekxmpp import Iq -from sleekxmpp.exceptions import XMPPError +from sleekxmpp.exceptions import XMPPError, IqError, IqTimeout from sleekxmpp.plugins.base import base_plugin from sleekxmpp.xmlstream.handler import Callback from sleekxmpp.xmlstream.matcher import StanzaPath -- cgit v1.2.3