Revision 66cd54c8 ncclient/transport/session.py

b/ncclient/transport/session.py
18 18
from ncclient import content
19 19
from ncclient.capabilities import Capabilities
20 20

  
21
from errors import TransportError
22

  
21 23
import logging
22 24
logger = logging.getLogger('ncclient.transport.session')
23 25

  
......
138 140

  
139 141
        :type message: `string`
140 142
        """
143
        if not self.connected:
144
            raise TransportError('Not connected to NETCONF server')
141 145
        logger.debug('queueing %s' % message)
142 146
        self._q.put(message)
143 147

  
......
184 188
        allows the callback to determine whether it wants to further process the
185 189
        document.
186 190

  
187
        :arg root: is a tuple of `(tag, attributes)` where `tag` is the qualified name of the root element and `attributes` is a dictionary of its attributes (also qualified names)
191
        :arg root: tuple of `(tag, attributes)` where `tag` is the qualified name of the root element and `attributes` is a dictionary of its attributes (also qualified names)
188 192
        :type root: `tuple`
189 193

  
190 194
        :arg raw: XML document

Also available in: Unified diff