Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python Subject: Re: psycopg2: proper positioning of .commit() within try: except: blocks Date: 7 Sep 2024 17:34:11 GMT Organization: Stefan Ram Lines: 10 Expires: 1 Jul 2025 11:59:58 GMT Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de SWT4KXi+QFSblDH/dhM4eAlbSJpXqM79g2Ns284+2+nwtT Cancel-Lock: sha1:IADySTfxCP+Ej7qklnN8vixitEU= sha256:rkda6d4fUX8SxAwrRUsGKdhBuQ6mwzULUkQF1F4bQng= X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en-US Bytes: 1763 Karsten Hilbert wrote or quoted: >except PSYCOPG2-Exception: The expression after "except" seems to be calculating a difference. (Lately, I've been seeing some super long subject lines around here, so here's a thought on how this one could've been worded shorter: "Positioning of a database .commit() within a try block")