Re: Feature branches merged to master for 2.8 release

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: psycopg(at)lists(dot)postgresql(dot)org, psycopg(at)postgresql(dot)org
Subject: Re: Feature branches merged to master for 2.8 release
Date: 2018-10-15 17:42:48
Message-ID: 20181015174247.GF2008@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, Oct 15, 2018 at 06:23:57PM +0100, Daniele Varrazzo wrote:

> I think it's responsible to make a decision. Having two names to refer
> to a thing is confusing. One of the two would be the "blessed" one -
> the one appearing in the tracebacks. And if a traceback says that
> 'unique_violation' was raised, it would be weird to solve it by
> writing a handler for 'UniqueViolation'.

I would then stick with UniqueViolation.

Perhaps an attribute

UniqueViolation.pg_error_name = unique_violation

so people _can_ know what to grep for ?

Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2018-10-15 18:09:10 Re: Feature branches merged to master for 2.8 release
Previous Message Federico Di Gregorio 2018-10-15 17:36:24 Re: Feature branches merged to master for 2.8 release