Python conditionals

How can I stop the Python/Postgres from complaining about the same email address out loud on the browser, while keeping a value of true for unique emails?