Revision 7b02d55b

b/ncclient/operations/rpc.py
181 181

  
182 182
    # internal use
183 183

  
184
    # one instance per session
184
    # one instance per session -- maybe there is a better way??
185 185
    def __new__(cls, session):
186 186
        instance = session.get_listener_instance(cls)
187 187
        if instance is None:
......
305 305
                if self._reply.error is not None:
306 306
                    # <rpc-error>'s [ RPCError ]
307 307
                    if self._raise_mode == "all":
308
                        raise self._reply._error
308
                        raise self._reply.error
309 309
                    elif (self._raise_mode == "errors" and
310 310
                          self._reply.error.type == "error"):
311 311
                        raise self._reply.error

Also available in: Unified diff