Sujet : Re: psycopg2: proper positioning of .commit() within try: except: blocks
De : greg.ewing (at) *nospam* canterbury.ac.nz (Greg Ewing)
Groupes : comp.lang.pythonDate : 09. Sep 2024, 03:48:32
Autres entêtes
Message-ID : <lk72fhFo32jU1@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0) Gecko/20100101 Thunderbird/91.3.2
On 9/09/24 2:13 am, Karsten Hilbert wrote:
For what it's worth here's the current state of code:
That code doesn't inspire much confidence in me. It's far too
convoluted with too much micro-management of exceptions.
I would much prefer to have just *one* place where exceptions are
caught and logged.
-- Greg