Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django breaks with PostgreSQL (psycopg2) and duplicate email/user #7

Open
leeezly opened this issue Sep 22, 2010 · 0 comments
Open

Comments

@leeezly
Copy link

leeezly commented Sep 22, 2010

This bug happens in model.py at:

  def add_email(self, user, email):
     try:
        email_address = self.create(user=user, email=email)

If this throws an IntegrityError (e.g. user and email already exist), Django fails when handling session and Cookies at the end with the HTTP return. This seems to be related to psycopg2, which cannot simply continue accessing the database when an IntegrityError was raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant