ucd-cws / PISCES

Software for tracking and analyzing fish species range data
Other
0 stars 2 forks source link

tbx_add_to_collection.py needs to detect when it can't insert because of a duplicate record #19

Open nickrsan opened 12 years ago

nickrsan commented 12 years ago

Original report by Nicholas Santos (Bitbucket: nickrsan, GitHub: nickrsan).


from the commit:tbx_add_to_collection.py where it won't crash if a record already exists for that observation in the collection - it'll just print a notice and continue

Basically, if it's going to create a duplicate record (bad), we don't want it to and it won't. But we want it to detect in the except block that that's WHY they query failed and print an error message if it's not (so we know that the query couldn't be run for another reason!)