From 38b89ae326e2f735696c9701e0efbc1967422144 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 16 May 2014 18:14:00 +0200 Subject: [PATCH] =?utf8?q?Affichage=20de=20l'erreur=20aussi=20+=20=C3=A9ch?= =?utf8?q?ec=20de=20%s?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- dtc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtc.py b/dtc.py index ae83166..162e735 100755 --- a/dtc.py +++ b/dtc.py @@ -61,8 +61,8 @@ if __name__ == "__main__": if q["id"] > last: try: insert(q) - except psycopg2.IntegrityError: - print "Bim. l,last_inserted = %s" % (l, last_inserted) + except psycopg2.IntegrityError as err: + print "Bim %s\nl,last_inserted = %s, %s" % (err, l, last_inserted) else: id = int(sys.argv[1]) try: -- 2.39.2