you can keep it as it's for more general exceptions.

the block i added will only catch exceptions for the insert, which is what you want to do.

the exception block that i added might need to be a bit more specific for a the program, you probablly want to specifically catch the primary key violation exception, and let any other exceptions drop down to the OTHERS clause of the one that's already there.