Re: psycopg2: proper positioning of .commit() within try: except: blocks

Liste des GroupesRevenir à cl python 
Sujet : Re: psycopg2: proper positioning of .commit() within try: except: blocks
De : greg.ewing (at) *nospam* canterbury.ac.nz (Greg Ewing)
Groupes : comp.lang.python
Date : 09. Sep 2024, 02: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

Date Sujet#  Auteur
8 Sep 24 * Re: psycopg2: proper positioning of .commit() within try: except: blocks5Karsten Hilbert
9 Sep 24 `* Re: psycopg2: proper positioning of .commit() within try: except: blocks4Greg Ewing
9 Sep 24  +- Re: psycopg2 positioning of .commit() (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
9 Sep 24  +- Re: psycopg2: proper positioning of .commit() within try: except: blocks1Karsten Hilbert
9 Sep 24  `- Re: psycopg2: proper positioning of .commit() within try: except: blocks1Karsten Hilbert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal