We will no longer see `IntegrityErrors` because of the upsert, but we could see other kinds of Pg errors. I put in a generic catch-all for this and a rollback. We may wish to improve this in the future, and I've opened a new bug to get test coverage for this exception handling as well as some others in this same file.