def get_by_email_raw(email): try: person = Person.get_by(email=email) except StatementError: raise PersonNotFoundException() if person is None: raise PersonNotFoundException() return person