]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Hide long tracebacks on connect
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 8 Oct 2021 01:25:46 +0000 (03:25 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 8 Oct 2021 01:25:46 +0000 (03:25 +0200)
commit91b1605f6eb50b7374418a73a6d8e2cfe4240a7b
treec5ac690887ad92b4d231a48b96f135d8f66b031b
parent66df581bfa71b3f565e494f2277e536145191858
Hide long tracebacks on connect

Only hide tracebacks of errors coming from the database. They just come
from the database: seeing exactly where they explode inside psycopg is
not useful for the end user. Especially given the generator/waiting
interaction.

See https://github.com/psycopg/psycopg/issues/99 for an example of not
particularly helpful traceback (the message is the only useful bit).
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py