Don't break test plugins that use None instead of a stream object.
This commit is contained in:
parent
3161f104c7
commit
4921c44d0a
@ -269,6 +269,7 @@ class BasePlugin(object):
|
|||||||
|
|
||||||
def __init__(self, xmpp, config=None):
|
def __init__(self, xmpp, config=None):
|
||||||
self.xmpp = xmpp
|
self.xmpp = xmpp
|
||||||
|
if self.xmpp:
|
||||||
self.api = self.xmpp.api.wrap(self.name)
|
self.api = self.xmpp.api.wrap(self.name)
|
||||||
|
|
||||||
#: A plugin's behaviour may be configurable, in which case those
|
#: A plugin's behaviour may be configurable, in which case those
|
||||||
|
Loading…
x
Reference in New Issue
Block a user