Revision 0c55eea9

b/ncclient/operations/rpc.py
121 121
        for subele in err:
122 122
            attr = RPCError.tag_to_attr.get(subele.tag, None)
123 123
            if attr is not None:
124
                setattr(self, attr, subele.text)
124
                setattr(self, attr, subele.text if attr != "_info" else to_xml(subele) )
125 125
        if self.message is not None:
126 126
            OperationError.__init__(self, self.message)
127 127
        else:
128 128
            OperationError.__init__(self, self.to_dict())
129 129
    
130 130
    def to_dict(self):
131
        return dict([ (attr[1:], gettattr(self, attr)) for attr in RPCError.tag_to_attr.values() ])
131
        return dict([ (attr[1:], getattr(self, attr)) for attr in RPCError.tag_to_attr.values() ])
132 132
    
133 133
    @property
134 134
    def type(self):

Also available in: Unified diff