def pull(self, img_name):
    try:
        self.cli.pull_image(img_name)
    except APIError as err:
        if ('failed to resolve image' in str(err)):
            raise NotFound(err)
        else:
            raise APIError(err)
def pull(self, img_name):
    try:
        self.cli.pull_image(img_name)
    except APIError as err:
        if ('failed to resolve image' in str(err)):
            raise NotFound(err)
        else:
            raise APIError(err)