On Thu, Oct 31, 2019 at 11:11:58AM -0500, Andrew M. Hettinger wrote:
> In light of this, how does one actually catch specific exceptions?

You can either acccess them from import pg (or import _pg).
I believe _pg will avoid warnings from pylint, but we were discussing how to
make that work for "import pg".

   except pg.ProgrammingError as err:
   except _pg.DatabaseError as e:

Justin
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net
https://mail.vex.net/mailman/listinfo/pygresql

Reply via email to