def sanitize_url(self, url):
        if url.startswith("http"):
            return url
        else:
            try:
                image = Image.objects.get(pk=int(url))
                return image.image_path.url
            except Image.DoesNotExist:
                pass
            except __HOLE__:
                return url
        return ""
dataset/ETHPy150Open pinax/pinax-blog/pinax/blog/parsers/markdown_parser.py/ImageLookupImagePattern.sanitize_url