def METHOD_NAME(self, command, **kwargs):
    try:
        subprocess.check_call(command, **kwargs)
    except subprocess.CalledProcessError as e:
        raise errors.SnapcraftPullError(command, e.returncode)