def __call__(self, *args, **kwargs):
        # pylint: disable=W0212
        if self.signal_timeout is None:
            command = "call"
        else:
            command = "signal"

        try:
            params = {
                  "command": command,
                  "object": self.iproxy._name,
                  "method": self.name,
                  "args": args,
                  "kwargs": kwargs
                }
            ident = self.iproxy._remote_ident
            return self.iproxy._client.remote_request(ident, self, params)
        except CallError:
            raise
        except Exception as exc:
            ehandler = self.iproxy._client.exception_handler
            if ehandler is None:
                raise
            else:
                ehandler(exc)

    ######################################################
dataset/ETHPy150Open dsiroky/snakemq/snakemq/rpc.py/RemoteMethod.__call__/original