Guest User

Untitled

a guest
Jun 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. cursor = connection.cursor()
  2. for item in list:
  3. try:
  4. cursor.execute(sql_insert_statement, (item,))
  5. except fdb.DatabaseError:
  6. log(f"Exception: duplicate found in database for {item}")
  7. continue
  8. finally:
  9. con.commit()
Add Comment
Please, Sign In to add comment