def METHOD_NAME(self, name, *args, **kwargs):
    real_func = getattr(seafile_api, name)
    if self.mute:
        try:
            return real_func(*args, **kwargs)
        except SearpcError as e:
            logger.warn(e, exc_info=True)
            return None
    else:
        return real_func(*args, **kwargs)