def _maybe_raise(self, result):
        if isinstance(result, error.RemoteError):
            raise result
        
        return result
wrapper for maybe raising an exception if apply failed.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Client._maybe_raise