Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/c/r/crate.pypi-HEAD/crate/pypi/processor.py   crate.pypi(Download)
                # Delete only this release
                try:
                    package = Package.objects.get(name=self.name)
                except Package.DoesNotExist:
                    return
    def store(self):
        try:
            package = Package.objects.get(normalized_name=re.sub('[^A-Za-z0-9.]+', '-', self.name).lower())
            if package.name != self.name:
                package.name = self.name
                #                 verified_md5_hashes[url] = md5_hash
 
                package = Package.objects.get(name=data["package"])
                release = Release.objects.filter(package=package, version=data["version"]).select_for_update()
 
 
        try:
            package = Package.objects.get(normalized_name=re.sub('[^A-Za-z0-9.]+', '-', self.name).lower())
        except Package.DoesNotExist:
            logger.exception("Error Trying To Verify %s (Querying Package)" % self.name)

src/c/r/crate.web-HEAD/crate/web/lists/views.py   crate.web(Download)
 
        try:
            package = Package.objects.get(name=kwargs.get("package"))
            user_list = List.objects.get(name=kwargs.get("list"), user=request.user)
        except Package.DoesNotExist: