diff --git a/omeroweb/webclient/webclient_gateway.py b/omeroweb/webclient/webclient_gateway.py index 2d365e9ce1..11cce2930f 100644 --- a/omeroweb/webclient/webclient_gateway.py +++ b/omeroweb/webclient/webclient_gateway.py @@ -1591,7 +1591,7 @@ def updatePermissions(self, group, permissions): try: cb = self.c.submit(command, loops=120) except omero.CmdError as ex: - message = ex.err.message + message = str(ex.err) finally: if cb: cb.close(True) diff --git a/omeroweb/webgateway/marshal.py b/omeroweb/webgateway/marshal.py index 80008ea3c2..ac7863bb12 100644 --- a/omeroweb/webgateway/marshal.py +++ b/omeroweb/webgateway/marshal.py @@ -445,7 +445,7 @@ def graphResponseMarshal(conn, rsp): rv = {} if isinstance(rsp, omero.cmd.ERR): rsp_params = ", ".join(["%s: %s" % (k, v) for k, v in rsp.parameters.items()]) - rv["error"] = rsp.message + rv["error"] = str(rsp.category) rv["report"] = "%s %s" % (rsp.name, rsp_params) else: included = rsp.responses[0].includedObjects