Commit 264044c4 authored by Ignacio Corderi's avatar Ignacio Corderi
Browse files

Fixed problem with error validation on AdminClient

parent 636b13c7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -32,11 +32,13 @@ class AdminClient(baseclient.BaseClient):
    def _process(self, op, *args, **kwargs):
        header, value = op.build(*args, **kwargs)
        try:
            r = None
            with self:
                # update header
                self.update_header(header)
                # send message synchronously
                r, v = self.send(header, value)
            operations._check_status(r)
            return op.parse(r,v)
        except Exception as e:
            return op.onError(e)