title: Python MySQLdb unique records, ignore errors
body: <p>I'm trying to insert records to my db from an array : </p>
  
  <pre><code> for string in self.FinalMailsArray:
              c.execute("""INSERT INTO table (email) VALUES(%s) """,(string))
  </code></pre>
  
  <p>The problem is, that I want the field email to be unique, so I enabled that in the DB. When I start inserting, I get errors for duplicate entry value.</p>
  
  <p>Is there a way where I can say, "if there is a duplicate error thrown, just go to the next string in the array" ? </p>