Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/m/o/moztrap-HEAD/moztrap/view/users/forms.py   moztrap(Download)
        """
        try:
            model.User.objects.get(email=self.cleaned_data["email"])
        except model.User.DoesNotExist:
            return self.cleaned_data["email"]

src/m/o/moztrap-HEAD/tests/case/view/base.py   moztrap(Download)
        else:
            try:
                user = model.User.objects.get(username=username)
            except model.User.DoesNotExist:
                pass
    def get_user(self, user_id):
        """Return instances of our User model."""
        try:
            return model.User.objects.get(pk=user_id)
        except model.User.DoesNotExist: