Don't break test plugins that use None instead of a stream object.
This commit is contained in:
parent
3161f104c7
commit
4921c44d0a
1 changed files with 2 additions and 1 deletions
|
@ -269,7 +269,8 @@ class BasePlugin(object):
|
|||
|
||||
def __init__(self, xmpp, config=None):
|
||||
self.xmpp = xmpp
|
||||
self.api = self.xmpp.api.wrap(self.name)
|
||||
if self.xmpp:
|
||||
self.api = self.xmpp.api.wrap(self.name)
|
||||
|
||||
#: A plugin's behaviour may be configurable, in which case those
|
||||
#: configuration settings will be provided as a dictionary.
|
||||
|
|
Loading…
Reference in a new issue